Seemlingly random 500 Errors on the orders API

Shopify Partner
1 0 0

Hey there,


We use the "https://#{shop_name}" endpoint for fetching orders from our customers. For a few set of customers we get 500 errors on a daily basis (we run a daily job that pulls this data), and we would like to understand the reasons behind these errors and potential solutions. When we get this error, we retry with a lower order limit, getting us the way down to 29 orders per request, but still get the error. Sometimes when we try to query the same link manually it works, and sometimes it does not. 


We were wondering if changing our implementation to the GraphQL endpoint would solve this issue with a high likelihood? Decreasing the time window? Or maybe implementing the bulk loading solution would work too? We would really appreciate a very definitive answer to justify the investment of engineering resources in these changes.


Here are the request ids for two of the shops we are having issues with:


Customer 1: 

"f05c88b1-658a-42b8-8597-01ffda86484a" (250 limit)





"95994826-eac4-4af5-85b9-b0d5220c21ef" (29 limit)


Customer 2:

"441bbb05-631c-495c-9949-585b9c2d0fc3" (250 limit)





"16e9acec-8903-4a87-b434-ddaea26f3962" (29 limit)

Reply 1 (1)

Shopify Staff (Retired)
51 10 7

Hi @luis-varela,


We recently implemented a fix for timeouts from the orders endpoints that were occurring upon the release of the order editing feature. In general these timeouts should no longer be occurring. 


If you are pulling large sets of data on a daily basis a more optimal solution may be to use our GraphQL Bulk Operations: the benefits of this being the ability to specify exactly which fields are relevant for your needs and the ability to poll for results as the operation is running. GraphQL Bulk Operations queries respond with a file in the JSONL format. More information is available in the guide linked above.

To learn more visit the Shopify Help Center or the Community Blog.