Media failed to process graphQL - product images

Hi Community

We are a new partner building an integration from an existing ERP to Shopify using the Admin graphQL api in a development store using a custom admin app for access with all access scopes enabled. We are currently running into an issue uploading images using the approach described here. Manage media for products

I have spoken to support advisor, and confirmed image meets all criteria, even using a Shopify sample image fails in the same way. These images also upload correctly when using the store admin UI.

create the staged location - 200 success

upload file to staged location - 200 success

updateproductmedia - 200 success

im aware the last call is async so the processing occurs after.
When going back to store UI then following errors are displayed in the media section of the product.

How can i view the detailed logs for why processing fails?

1 Like

Hey @Shaun_Penfold :waving_hand: - you can use the mediaStatus field to pull a few more details in the API response to see if a file uploads correctly, but that would only tell you if the upload failed/succeeded or is still processing.

Would you be able to share an X-Request-ID value from the Response headers there in your API client for an example of a productUpdate mutation you’re making with that staged upload URL? I can take a look at our logs to see why it may be failing internally on my end here and loop back with you when I have some more info.

Hi @Alan_G

Thanks for looking into this, the X-Request-ID is “2ef51607-3fea-4c1d-864b-e061500df42a-1744325776”.

No worries @Shaun_Penfold - thanks for the request ID - I’ll do some more digging into this and loop back with you when I have more info on my end here :slight_smile:

Hi @Alan_G

We have found that the image was not being uploaded correctly when using the PUT http verb, we have changed to using the POST method and this is working as expected, both method are documented as supported for images. No further action required here.