A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
We need assistance with Errors related to GraphQl API
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"}}]
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
Hi,