Error "Exceeded 4 calls per second for api client"

Highlighted
Tourist
17 0 1

Hello,

 

When we fetch data from shopify via API sometimes we face this error "".

Is it hard coded shopify condition which will check number of calls for all accounts or it is something that depends on what plan we bought?

Screenshot_2020-11-02 Journal Entries - Odoo(1).png

Thanks,

0 Likes
Highlighted
Shopify Partner
648 46 130

I believe you get increased API throughput on the Plus plan. Details are included here --> https://shopify.dev/concepts/about-apis/rate-limits. Basically if you control the code that's performing the API requests, I'd build in a sleep routine so you stay within the limits.

0 Likes
Highlighted
Shopify Partner
1866 181 747

Hi @poojaz 

I would closely reference this documentation and like already mentioned, add some throttling if your app hits that rate limit often. Implementing throttling using the same leaky bucket algorithm Shopify's APIs adhere to is quite simple though I'd add some "wiggle space" i.e. buffer to be safe.

Liked this post? You might also like our fantastic upsell apps Candy Rack and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
0 Likes