FROM CACHE - en_header

Server Error 500

New Member
2 0 1

A simple API request for searching a customer  (customers/search.json?query=email:{}) failled yesterday for no obvious reason. My Log:

[ERROR] 2021-02-10T22:14:34.594Z Error: b'

{ "errors": "Internal Server Error" }


What could be the issue here? Any ideas how i could further investigate is appreciated. Thanks

Replies 3 (3)
Shopify Partner
1023 84 268

Is this a consistent behavior? I'd imagine more sporadic and just a transient situation on Shopify's end as long as the URL query parameters are correctly used. Just tested this out a moment ago and my API request worked fine. See below.


New Member
2 0 1

thank you for your answer and checking it from your side.

the error is not consistent. in fact i could not reproduce it, but found it in my logs.
i got several of theese errors over a span of 5 minutes which could validate the theory that this error is on shopifys end. 

is there any official recommondation on how to deal with such situations? retry instantly? put some delay in between?


Shopify Staff
Shopify Staff
836 99 211

Hey @agl_sup,

Definitely sounds like a transient error from our end. If it hasn't happened again since, there's no reason to investigate. We recommend handling errors like these by retrying the request after 1s, with an exponential backoff for any subsequent requests if necessary. Usually, one-off errors like this succeed on the 2nd request due to caching. It sounds like something different happened in this particular case since you saw multiple errors in the span of 5 minutes, but an exponential backoff will handle that nonetheless.

JB | Solutions Engineer @ Shopify 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog