Graphql Api Errors (Internal Server Error, 502 Bad Gateway Error)

Rushabh_12
Shopify Partner
2 0 0

We need assistance with Errors related to GraphQl API

  1. 502 Bad Gateway Error 2.Internal Server Error

Whole scenario: We are using these APIs to update in bulk the product details like price, meta title, meta description, etc. So while running mutations (Graqhql API) to send the new/updated details, we sometimes face these issues. More details: (For internal Shopify server error) local.INFO: {"response":{},"body":[{"message":"Internal error. Looks like something went wrong on our end. Request ID: 37d0b3d5-49c8-4728-842b-c4ec0e2f54a6 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"37d0b3d5-49c8-4728-842b-c4ec0e2f54a6"}}],"bodyArray":[{"message":"Internal error. Looks like something went wrong on our end. Request ID: 37d0b3d5-49c8-4728-842b-c4ec0e2f54a6 (include this in support requests).","extensions":{"code":"INTERNAL_SERVER_ERROR","requestId":"37d0b3d5-49c8-4728-842b-c4ec0e2f54a6"}}]

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1415 231 484

Hey @Rushabh_12 - thanks for getting in touch. Our team was able to look into this for you based on the X-Request-ID you shared, so thank you for passing that along. From what we can see in the logs on our end, it appears that the mutation timed out - possibly because the query contained a large amount of parameters to update. This can happen from time to time, especially if the query is large, and does usually result in an Internal Server Error message being surfaced in the response to the API Call. 

 

That said, if you need to update lots of products at once, we do offer specific bulk operation functionality - there is a guide on that here. I do know the productUpdate mutation can be used within a bulk operation - so this might work as a solution. Hope this helps - let us know if we can clarify anything on our end. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

Rushabh_12
Shopify Partner
2 0 0

Hi, 

My original mutation is working after some API version changes. 
Thanks!