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

shaswa
New Member
3 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
3 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.