Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Request failed with HTTP Code 502. Usinn GraphQL to update variants

Request failed with HTTP Code 502. Usinn GraphQL to update variants

ASLuis
Shopify Partner
6 0 2

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

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 527

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