Last modified: 2012-11-02 14:53:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43494, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41494 - Impossible to debug exceptions in API requests
Impossible to debug exceptions in API requests
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.21.x
All All
: High major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 39480 41497
  Show dependency treegraph
 
Reported: 2012-10-29 18:04 UTC by Niklas Laxström
Modified: 2012-11-02 14:53 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2012-10-29 18:04:04 UTC
Since API catches exceptions, it is impossible to debug them. I have enabled exception logging and backtraces, but only thing in php error log is the following:

2012-10-29 18:01:04 translatewiki.net mediawiki-bw_: [43eeba39] [no req]   Exception from line 544 of /www/translatewiki.net/w/includes/content/ContentHandler.php: Format json is not supported for content model wikitext

In addition the http requests are served with HTTP 200, which makes it impossible to grep the access logs for causes.
Comment 1 Brad Jorsch 2012-10-29 20:57:07 UTC
Gerrit change #30653 should enable use of $wgLogExceptionBacktrace to log the backtrace for non-API exceptions caught by the API.
Comment 2 Umherirrender 2012-11-02 14:53:07 UTC
successfully merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links