502 Bad Gateway when retrieving a single product

Bjorn_Forsberg_
Shopify Partner
302 4 81

Hey team,

 

I'm seeing more and more errors related to "502 - Bad Gateway" errors when pulling Products from the Shopify REST API.  We started seeing this when pulling lots of products at once, however today, we're seeing this error when pulling a single product from a store:

 

HTTP GET (82043.20ms) https://xxxxx.myshopify.com:443/admin/api/2020-04/products.json?_apiFeatures=include-presentment-prices&ids=5370927749&limit=1

 

Eventually it gives up after about 80 seconds. 

 

Was something changed recently, making the Products API unstable and what would be the recommended solution?

 

Thanks!
Bjorn

 

 

Bjorn Forsberg | FORSBERG+two | Award-winning Shopify Apps since 2011
Replies 2 (2)
_JB
Shopify Staff
Shopify Staff
836 100 218

Hey @Bjorn_Forsberg_,

 

Can you kindly provide the X-Request-ID value from the response headers of a failed call? I can use that to check our logs and hopefully find more information about the error.

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

Bjorn_Forsberg_
Shopify Partner
302 4 81

Hey @_JB 

 

Thanks for the reply, and my apologies.. should have known to include that from the start 🙂

 

Here's the request ID from a call made today:

 

72658439-86ed-4dfd-8986-493c99878543

Note: The above request was made using PostMan as my app would kill the request due to the extremely long response time (80+ seconds), leaving me without headers from there. But the result is exactly the same.

 

Let me know if you need more info.

 

Thanks!
Bjorn

 

 

 

Bjorn Forsberg | FORSBERG+two | Award-winning Shopify Apps since 2011