Last modified: 2010-05-15 16:03:48 UTC
If the api throws an error and the format is set to JSON, the error is additionally tagged onto the end of the JSON making it fail on JSON parsers. for example http://en.wikipedia.org/w/api.php?action=invalid&meta=siteinfo&format=json will produce {"error":{"code":"unknown_action","info":"Unrecognized value for parameter 'action': invalid"}}unknown_action: Unrecognized value for parameter 'action': invalid instead of {"error":{"code":"unknown_action","info":"Unrecognized value for parameter 'action': invalid"}}
Fixed in r37349. The error handler called getAllowedParams() while it was being invoked because getAllowedParams() threw the error in question.