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
I encountered a case where the server returned with HTTP 504 Timeout error
and the shopify_api gem tried to parse the response body as json, failed and
raised JSON::ParserError
As far as I understand, we expect the API to return always json response body
but there can be cases like accessing the API via a reverse proxy which can
respond with non-json body. In such cases, can't we still return a specific error
rather than JsonParse?
shopify_api version: 10.x (although this should happen in the latest, 12.x version)
Ruby version:
Operating system:
Expected behavior
Actual behavior
Steps to reproduce the problem
stub the request in a test returning 504 with a non-json response body.
confirm you get a jsonparse error
The text was updated successfully, but these errors were encountered:
Issue summary
I encountered a case where the server returned with HTTP 504 Timeout error
and the shopify_api gem tried to parse the response body as json, failed and
raised
JSON::ParserError
As far as I understand, we expect the API to return always json response body
but there can be cases like accessing the API via a reverse proxy which can
respond with non-json body. In such cases, can't we still return a specific error
rather than JsonParse?
shopify_api
version: 10.x (although this should happen in the latest, 12.x version)Expected behavior
Actual behavior
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: