502 Bad Gateway when updating a product with many images

Hi,

I have tested this api many times, and some products have been updated successfully, while others have returned 502 Bad Gateway. If the request fails, it will always return failure. I guess it’s because there are too many pictures associated with products. There is no problem updating a single image, but it is too slow. We hope to update all images at once through the update product api.

API documentation: https://shopify.dev/docs/api/admin-rest/2023-01/resources/product#put-products-product-id

request api: /admin/api/2023-01/products/7391940804799.json

response header:

  • x-request-id: 4753617e-75c0-424a-935f-2a1cdbd31672
  • date: Mon, 20 Feb 2023 06:15:55 GMT

Thanks.