Shopify: Exceeded 2 calls per second for api client
See original GitHub issueHi there,
I have a large catalogue of products +600 and are trying to change them all from Draft > Active through Shopify. However, due to an API limit HULL and Shopify are giving some issues.
Maybe there needs to be added some sort of queue to prevent this from happening, as this could easily also happen if two or more people are updating Shopify at the same time.
[POST] /api/shopify/product-update — 10:24:47:73
url: 'https://[shop-name].myshopify.com/admin/products/[pid]/metafields.json',
method: 'get',
...
data: {
errors: 'Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted service.'
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
"Exceeded 2 calls per second for api client" - Please help!
Solved: Hi, I am publishing products to the shop back office via the API. Unfortunately, I get the following error, when publishing certain...
Read more >Exceeded 2 Calls per Second for API Client” for Webhooks
This Shopify error is due to a limitation on API calls, which unfortunately for you impacts your ability to handle events that trigger...
Read more >Shopify API: Exceeded 2 calls per second for api client
I am fully aware of the rate limits of 40 requests per minute and the refresh rate of 2 requests per second. The...
Read more >Shopify API rate limits
Shopify limits the amount of checkouts that can be created on the Storefront API per minute. If an API client exceeds this throttle,...
Read more >Question: Exceeded 2 calls per second for api client (Shopify)
The trick is to set the "Maximum concurrent executions", depending on the capacity of the end point. If you set it to 1,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @dnlmzw, I ran into a similar problem with a client and after a bunch of research found this tool called hookdeck which allows you to queue/throttle webhooks.
All I had to do was change out the webhook urls from my own api endpoint to one they give. From there I set a rate limit of 2 per second to the /api/shopify/product-update endpoint, and it seems like it’s working fine for now! There’s a free plan of 10,000 events per month.
Very cool product! Going to keep a close eye on my logs. Will def use this if I hit rate limits.
Edit: Scratch that, this looks awesome. Going to move some of my webhooks to Hookdeck. I like that it keeps a record of webhooks. ❤️