Solved

Error uploading images

Exhibify
Shopify Partner
2 0 0

Hello,

 

We have a store set up (exhibify.net) and we send products and collections from our CMS using both REST API and GraphQL API. We have a problem when sending a series of images that we then associate to a collection, but it fails at the time of uploading the images. To upload it we use the GraphQL API using the fileCreate mutation and send the original URL of the images. So far it has worked without problems but we have a problem with a specific upload. 

 

This is the error that returns the API. It says that is a problem on the Shopify end but in support they say that it seems that is not in their side.

 

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.\nRequest ID: 2a6192a3-bd60-4d48-9f36-985ad77b2167 (include this in support requests).",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "2a6192a3-bd60-4d48-9f36-985ad77b2167"
      }
    }
  ]
} 

 

I need some help to solve this problem.

 

Regards,
 

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1435 234 488

This is an accepted solution.

Hey @Exhibify 

 

If you have already confirmed the images are still available at the source URL then I'd recommend trying to break up the series into a smaller groups of images to see if that resolves the issue, or if the error persists with any specific image(s). 

 

Another option would be to upload your media to Shopify first, then associate the images with the collection afterwards, but if the issue does persist for a specific image then please reach out to our partner support with a full example of the request, along with a timestamp/ request ID and our team can check the logs.

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

View solution in original post

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1435 234 488

This is an accepted solution.

Hey @Exhibify 

 

If you have already confirmed the images are still available at the source URL then I'd recommend trying to break up the series into a smaller groups of images to see if that resolves the issue, or if the error persists with any specific image(s). 

 

Another option would be to upload your media to Shopify first, then associate the images with the collection afterwards, but if the issue does persist for a specific image then please reach out to our partner support with a full example of the request, along with a timestamp/ request ID and our team can check the logs.

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

Exhibify
Shopify Partner
2 0 0

Hello,

 

I have sent the images one by one and it worked. Maybe there was a lot of images and the request was too large.

 

Thank you for your help.