Development discussions around Shopify APIs
Does the import api have a file size limit? I'm trying to upload a ~36mb file, and I keep getting broken pipe in ruby (Faraday) and curl almost instantly when I initiate the multipart form POST request. Any advice?
Thanks in advance.
Solved! Go to the solution
This is an accepted solution.
Hey @cloudev0
At the moment, the file size limit is 20 megabytes for bulk mutations. We're going to review the documentation to have this made more clear in the future.
Best,
Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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
I have the same problem, does somebody have an answer ? (seem to be S3 limitation)
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>EntityTooLarge</Code>
<Message>Your proposed upload exceeds the maximum allowed size</Message>
<ProposedSize>20975508</ProposedSize>
<MaxSizeAllowed>20971520</MaxSizeAllowed>
<RequestId>N5FTYTNP6MPP1VB9</RequestId>
<HostId>Nlu1xkUPTWKP345Uma79b2hQzFzqDJ3fBrZN7g1iM552PHuf0uif/gM4Cqg3UxXp7KVi+b5AIvI=</HostId>
</Error>
I ended up rotating files when writing the mutation data (think log rotation, with each file having 20mb max), then chain upload the files. Upload first file. Wait for Webhook. When Webhook comes, respond and upload the next file and so on.
@cloudev0 If I may ask, what's the average import speed/rate you get doing that?
This is an accepted solution.
Hey @cloudev0
At the moment, the file size limit is 20 megabytes for bulk mutations. We're going to review the documentation to have this made more clear in the future.
Best,
Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me 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
So how are we supposed to get around this problem without having to do multiple bulk mutations???
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023