You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Filing a ticket to track - happy to work on a PR for this.
The Steam API is currently down (along with the rest of Steam). The API responds with a HTML file when this happens:
Service Unavailable
The server is temporarily unable to service your request. Please try again later.
Reference #6.857ffea5.1482516293.3b52a0f
Naturally, this throws a JSON parsing error - since it's definitely not JSON:
Steam::JSONError: The API returned an unexpected JSON response
It would be nice if we could special case a 503 response and throw a Steam::UnavailableError or something similar - would be able to disambiguate between bad JSON responses (e.g. a game with no achievements returns an invalid JSON block) vs the service is down (returns 503 page).
The text was updated successfully, but these errors were encountered:
thomas-mcdonald
changed the title
503 responses could be handled nicer
503 responses throw Steam::JSONError
Dec 23, 2016
Filing a ticket to track - happy to work on a PR for this.
The Steam API is currently down (along with the rest of Steam). The API responds with a HTML file when this happens:
Naturally, this throws a JSON parsing error - since it's definitely not JSON:
It would be nice if we could special case a 503 response and throw a Steam::UnavailableError or something similar - would be able to disambiguate between bad JSON responses (e.g. a game with no achievements returns an invalid JSON block) vs the service is down (returns 503 page).
The text was updated successfully, but these errors were encountered: