500 Internal Server Error While Downloading products

Highlighted
Excursionist
18 1 5

Hello Shopify,

We are trying to download the product from Shopify using  Shopify API its  giving us (500) Internal Server Error.

API : Admin/API/2020-01/products.json?limit=250&order=updated_at asc 

Request id -: e1722788-fb80-41bd-97d5-ea47ce1fc104

0 Likes
Highlighted
Excursionist
18 1 5

@Shopify Team, 

Can we get a Quick Update here. 

0 Likes
Highlighted
Excursionist
18 1 5

@Shopify Team,

We are getting this problem only with one customer and he is not able the download the product from shopify api. 

Can you please expedite it.

0 Likes
Highlighted
Shopify Partner
331 23 68

Does this particular customer have a lot more records than others? That might be it. See https://community.shopify.com/c/Shopify-APIs-SDKs/Ordering-REST-Api-results-by-updated-at-causes-500... for details. The sorting criteria could be timing out trying to shuffle the results. Perhaps querying against last modified timestamps would return a smaller result set?

1 Like
Highlighted
Shopify Staff
Shopify Staff
57 5 9

Hey @Webgility1 

The 500 error is from a timeout on our end and is due to the 'order=updated_at asc' param you are passing. Unfortunately using the 'order' param isn't documented and therefore not supported. Removing this from your call should resolve your issue. Please see our docs on the REST Product endpoint for valid params that you can pass. 

Kevin_A | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes