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

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

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

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