A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I'm writing a webhook-based data cache as a private app for our store, and needed a way to recover from any outages (and, possibly, backfill some amount of past data at the moment it goes to production). At first, I was planning to just use the REST API to query through from the timestamp of the last addition before an outage, but then I ran across this guide to the Bulk Operations API. Looks pretty good, but there's just one small problem: after the first test I ran completed successfully (after about 2 seconds) and I downloaded the result file, I couldn't start any others, even with a direct copy+paste from the tutorial. Every request is met with a terse "400 Bad Request".
What I've tried:
Solved! Go to the solution
This is an accepted solution.
Thanks for getting back to me, @_JCC_ . I figured out some of the issues although some of it is still mysterious.
There were at least three bad interactions of Insomnia with Shopify:
I still don't know why the cross-checks using my own code failed, but I've now been able to start successful operations again.
Hey @NTuggy
Can you provide us with the x-request-id response header for one of the failed 400 requests?
Kevin_A | Solutions Engineer @ 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
Sure, @Kevin_A. The most recent one was 604dfae2-435a-4383-b355-cdfb2d0ce809. I just sent off a4ef4545-da83-430e-a995-7a8cd8ea0564 with Basic authorization again.
Hey @NTuggy ,
Are you still experiencing an issue? Looking at bulkOperationRunQuery over the last seven days I'm not seeing any 400 - Bad Requests. If you do, please provide a recent request-id and I can have a look. The previous request-id provided indicates a parsing error in the payload of the request but I didn't experience an issue copying and pasting it into Insomnia.
Regards,
John Cole
John C | Developer 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
This is an accepted solution.
Thanks for getting back to me, @_JCC_ . I figured out some of the issues although some of it is still mysterious.
There were at least three bad interactions of Insomnia with Shopify:
I still don't know why the cross-checks using my own code failed, but I've now been able to start successful operations again.