A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hello I have a response with following message: Request failed with HTTP Code 502. Usinn GraphQL to update variants
And I have no idea what's happening.
[x-request-id] => d9e2314d-60a8-4d1a-9fa2-35428d982b23
Hi @ASLuis 👋
Thanks for sharing the x-request-id.
The logs show that a large number of external-source images are being processed as part of the mutation. When loading more than 5 images to a product/variant, it's best to first use the async mutation `productCreateMedia` instead. Also, it appears that you're using the `productUpdate` mutation to update multiple variants, which is not recommended. Instead, please use the `productVariantsBulkUpdate` mutation when updating multiple product variants.
Hope that helps!
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