Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted ser

nicoms91
New Member
1 0 0

Hey guys how are you today? I am having a big issue on my Shopify App that I listed a couple of days ago. The core functionality of my app is an endpoint that hits the Shopify API endpoint to edit draft_orders several multiple times. I am fully aware of the rate limits of 40 requests per minute and the refresh rate of 2 requests per second. 

 

The strange thing is the timestamp of these failed requests:

PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:18
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:23
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:31
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:09:47
PUT https://****.myshopify.com/admin/draft_orders/124016722005.json [429] 09:10:19

 

All of these are returning: 

 

 

 

Error code: 429 (Too many request)
Error message: REASON: Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted service.

 

 

 

As you can see there is more than 1 minute of time between the first failed request and the latest. So I am completely confused of what could be causing the issue.


Please if anyone can help me I will be really appreciate it. Without this the app its not working as expected and the stores are not receiving the service that they deserve.

Thank you!

Reply 1 (1)
Jason
Shopify Expert
10438 169 2081

This doesn't sound strange to me.

There's nothing presented here to suggest that your app is not hitting the endpoint continually during that time block. My assumption is that sometimes you go over your limit - hence the error.

It's also not a good idea to keep hitting 429s either. Your app should respond to the error and make calls at a frequency in line with the availability on the bucket. If you're just running things only a timer, it won't end up with a successful outcome.

Do you have more info to suggest there's a problem?

Sidenote: you have masked the url in the text but the link still points to the shop. I'm guessing you didn't want that. 

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.
Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.
★ http://freakdesign.com.au ★