Hi, here is the problem that I’m facing using Shopify API:
-
Create collection using collectionCreate request without image
-
Collection saves properly
-
Update the same already saved collection with an image (name: cat.jpeg, extension: jpeg, size: <1 MB, URL: AWS URL) using collectionUpdate request
-
Update response contains error: {src=> “Error updating collection with this image”)
-
Fun facts:
- If createCollection is requested at the beginning with cat.jpeg image it works fine
- If collectionUpdate fails with “Error updating…” and then cat.jpeg image is changed for a different one, it works fine. If cat.jpeg is updated once again after a different image, it works fine as well.
- It fails interchangeable for updating different images instead of cat.jpeg for the first update
I’ve tried to stageUpload before collectionUpdate and put Shopify resourceUrl as a image URL, and after successful stageUpload I got this from collectionUpdate:
Image upload failed. [NonRetryableStagedUploadError] Downloading image failed with: Unable to fetch asset from GCS staged upload key:
I would be really grateful for your answer.