Page MenuHomePhabricator

ApiSandbox can't handle empty responses
Closed, ResolvedPublic

Description

If API request returns an empty response body (even with status code 200), ApiSandbox says An error occurred while loading the API query response: HTTP error: undefined. which is not exactly what happened.

Event Timeline

MaxSem created this task.Mar 29 2016, 12:57 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 29 2016, 12:57 AM

This is actually something of a bug in mw.Api, it considers a successful empty response as a failure.

Change 280217 had a related patch set uploaded (by Anomie):
ApiSandbox: Work around mw.Api treating an empty response as failure

https://gerrit.wikimedia.org/r/280217

Anomie claimed this task.Mar 29 2016, 2:12 PM
Anomie moved this task from Unsorted to Needs Review on the MediaWiki-API board.
matmarex closed this task as Resolved.Mar 29 2016, 10:33 PM
matmarex removed a project: Patch-For-Review.

Change 280217 merged by jenkins-bot:
ApiSandbox: Work around mw.Api treating an empty response as failure

https://gerrit.wikimedia.org/r/280217