Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Product API return 502 error

Product API return 502 error

noah_bc
Visitor
1 0 0

Hello,

 

Our app using Product API to get product data via REST endpoint
https://shopify.dev/api/admin-rest/2021-10/resources/product


In one of our stores, we're continuously getting error for this endpoint, the request usually takes very long and eventually returns 502 Bad Gateway. Our request look something like this /admin/api/2021-07/products.json?page_info={page_info}&limit=250

 

Through some troubleshooting, we reduce the limit param to 1 and discovered that some of the products causing the error have maximum number of variants (100) and the store is using more than a hundred currencies. If we don't set to get presentment_prices, the request completes successfully. But that's not going to work for our business requirement since we need price data to display the correct product price.

 

One more note, the same request used to work in the past, we were able to get the product data and saved it in our database weeks ago. For some reason, it stops working now.

 

I'm hoping you can take a look at this to help us resolve this issue. Thank you.

Reply 1 (1)

howard-boost
Shopify Partner
18 0 4

Can anyone please help with this issue? We are losing customers because of this and we don't have any work around...