Getting timeout_response

Swapnil_Gadewar
Shopify Partner
14 0 1

Hello,

We are getting "error" => "timeout_response" while updating the stock using Rest API's,

Does anyone know what may be the reason?

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
314 42 54

Hey @Swapnil_Gadewar 

Can you provide the request ID response header so we can take a look?

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Swapnil_Gadewar
Shopify Partner
14 0 1

Hello @Kevin_A ,

Recently we come across this error for another client using our API integration. Sharing the request id for your review,

Request id: ed8ff5f4-9f3f-48df-8a18-b398273d0b22

 

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
314 42 54

Hey @Swapnil_Gadewar 

In our logs I'm seeing a 302 response which indicates a redirect. It looks like this may be due to your request URL. I am seeing an extra forward slash "/" in your url. For reference:

//admin/api/2020-10/inventory_levels/set.json

Should be:

/admin/api/2020-10/inventory_levels/set.json

 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Swapnil_Gadewar
Shopify Partner
14 0 1

Hello @Kevin_A ,

Thank you for the reply.
We corrected the request URL but we are still receiving 302 response.

Can you please review the latest request id: 224df34a-4292-4601-a174-4ad1efbce696

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
314 42 54

Hey @Swapnil_Gadewar 

How are you making the POST request? Is it being made from an API client? It almost look as though this request is being made through a browser or similar client. 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes
Swapnil_Gadewar
Shopify Partner
14 0 1

Hello @Kevin_A ,

We are using API client to make the request.

0 Likes
Swapnil_Gadewar
Shopify Partner
14 0 1

Hi @Kevin_A ,

We are receiving the request timeout error quite often for almost all sellers, can you please check this?

As mentioned in my previous reply we are using API client to make the requests.

Here is the latest request id for your reference - 499134f2-dede-4ce3-8c1c-91bb3d046b0c

0 Likes
Kevin_A
Shopify Staff
Shopify Staff
314 42 54

Hey @Swapnil_Gadewar 

Can you try a different API client on the same computer/server where you are making this call from? 

Kevin_A | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes