What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Getting "unexpected end of JSON input" with 422 Status code occasionally

Getting "unexpected end of JSON input" with 422 Status code occasionally

shaswa
New Member
4 0 0

Overview

When placing orders on shopify, we are occasionally getting a 422 with "unexpected end of JSON input" in the response body. But if we retry the same exact request again, it will succeed. Our temporary fix right now is to retry these particular requests. Does anyone know why this error is being caused? 

 

Reply 1 (1)

shaswa
New Member
4 0 0

My bad, it actually returns an empty response body with 422 status code. unexpected end of JSON input is just our error message when processing the response body.