Not able to upload image through GraphQL

Topic summary

A developer is encountering an INTERNAL_SERVER_ERROR when attempting to upload images to Shopify Files via GraphQL API, despite having verified correct API scopes.

Technical Details:

  • Images are successfully downloaded from a placeholder URL and processed as WebP format
  • The GraphQL request returns HTTP 200 but contains error data instead of successful upload confirmation
  • Error includes a specific Request ID for support tracking

Current Status:

  • The issue was escalated by a support advisor to this forum
  • No resolution has been provided yet
  • The problem appears to be server-side rather than a client configuration issue, as indicated by the internal error message
Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Any help or suggestions are appreciated. The support advisor told me to post my problem here.

So I am trying to automate uploading my images to shopify files, however I am unable to do so. I’ve made sure that the API that I use has the right scope. It gives me the following error:

Downloading image from: https://placehold.co/150x150.webp
Image downloaded successfully to: /tmp/test-product-stripped-metadata-test.webp
Processing image at: /tmp/test-product-stripped-metadata-test.webp
Image processed and saved as WebP at: /tmp/test-product-stripped-metadata-test_processed.webp
Uploading processed image to Shopify: /tmp/test-product-stripped-metadata-test_processed.webp
Shopify GraphQL Response Code: 200
Shopify GraphQL Response: {‘errors’: [{‘message’: ‘Internal error. Looks like something went wrong on our end.\nRequest ID: 267e220e-395b-46cf-9e91-eff66dc3d231-1739791673 (include this in support requests).’, ‘extensions’: {‘code’: ‘INTERNAL_SERVER_ERROR’, ‘requestId’: ‘267e220e-395b-46cf-9e91-eff66dc3d231-1739791673’}}], ‘data’: None}
GraphQL Errors: [{‘message’: ‘Internal error. Looks like something went wrong on our end.\nRequest ID: 267e220e-395b-46cf-9e91-eff66dc3d231-1739791673 (include this in support requests).’, ‘extensions’: {‘code’: ‘INTERNAL_SERVER_ERROR’, ‘requestId’: ‘267e220e-395b-46cf-9e91-eff66dc3d231-1739791673’}}]
Temporary file deleted: /tmp/test-product-stripped-metadata-test.webp
Temporary file deleted: /tmp/test-product-stripped-metadata-test_processed.webp
Image upload failed.