Add Application errors for Mediawiki API to x-analytics
Open, NormalPublic

Description

Add Application errors for Mediawiki API to x-analytics

Sounds like application errors are reported to MediaWiki-API-Error header when an API request is in error. Adding this field to x-Analytics allows us to be able to quantify API errors using webrequest table.

Now, this doesn't include errors like 404s or 503 so only part of the errors from the API will be reported.

Nuria created this task.Oct 26 2015, 8:54 PM
Nuria updated the task description. (Show Details)
Nuria raised the priority of this task from to Normal.
Nuria assigned this task to bd808.
Nuria added subscribers: Nuria, Ottomata, Spage and 3 others.
Anomie added a subscriber: Anomie.Oct 27 2015, 3:29 PM

Now, this doesn't include errors like 404s or 503 so only part of the errors from the API will be reported.

The API never generates 404s, and never intentionally generates 5xx (they only get generated in case of PHP fatals or things being so badly screwed up that exceptions aren't being caught). A 400 might be generated by certain special actions that can't report errors in a normal way (e.g. the proposed TimedMediaHandler action=timedtext that doesn't return a normal API-formatted response, or possibly the various feed modules in the future), and a CORS failure may return a 403 in line with the CORS specification (which isn't strictly "API" since it's at the level of the HTTP transport rather than the API itself).

Qgil set Security to None.
bd808 removed bd808 as the assignee of this task.Oct 29 2015, 5:33 PM
Milimetric moved this task from Incoming to Radar on the Analytics board.Feb 18 2016, 6:24 PM