bulkOperationRunMutation issue - Rails app

JarvisColtrane
Shopify Expert
267 1 16

Hey guys,

We're using Rails and we've hit a bit of a snag when it comes to bulkOperationRunMutation. We get the issue that's invalid JSON. 

JarvisColtrane_0-1626284284597.png

The file we're uploading definitely is JSONL

JarvisColtrane_1-1626284342192.png

We get a response just fine, parse the Key etc. Nothing throws an error until the last step where it says that file is expected to be JSONL. Any help would be highly appreciated. 

Jarvis @ Kaleido
- Slow Shopify Store? Install our PageSpeed Magic app.
- Have more questions? Feel free to email me.
- My reply helped? Click Like to show me some love!

0 Likes
csam
Shopify Staff
Shopify Staff
34 4 3

Hi @JarvisColtrane 

Are you including the MimeType of text/jsonl in your request? Please see the example call at the bottom of this page: https://shopify.dev/api/usage/bulk-operations/imports#generate-the-uploaded-url-and-parameters 

 

CS | 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

0 Likes
JarvisColtrane
Shopify Expert
267 1 16

@csam Hi, thanks for the assist.

JarvisColtrane_0-1626436011365.png

 

There is a positive response with the location / key. Nothing out of the ordinary really. 

Jarvis @ Kaleido
- Slow Shopify Store? Install our PageSpeed Magic app.
- Have more questions? Feel free to email me.
- My reply helped? Click Like to show me some love!

0 Likes