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).
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).