question

gaash-granot6752 avatar image
gaash-granot6752 asked Anirban answered

Throttling problem - why am I getting 429?

Hi,


I read and followed all your articles about throttling, but still I'm getting 429 from you,

although I didn't reach the rate limit.

https://developer.ringcentral.com/api-docs/latest/index.html?_ga=2.28902133.890627266.1513606733-126...

http://ringcentral-faq.readthedocs.io/en/latest/api_usage_plan/#usage-plan-faq


I did a lot of digging until I found the following post:

https://devcommunity.ringcentral.com/ringcentraldev/topics/ringcentral-csharp-handling-429-exception...

which specifies, that in addition to the general rate limit, there's also a limitation of 3 requests per second.


Please acknowledge such a limitation.



Thanks,


gaash

errors
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tyler Liu avatar image
Tyler Liu answered gaash-granot6752 commented
I am unaware of   a limitation of 3 requests  per second.

Throttling is per minute:  http://ringcentral-api-docs.readthedocs.io/en/latest/rate_limits/

But if you do encounter 429, you need to slow down the api access. Best practice is to write proper code to handle 429 instead of assuming you will never encounter it.

And by the way, there might be multiple instances of your app running so they will share the throttling quota.
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

gaash-granot6752 avatar image gaash-granot6752 commented ·
thanks.

i already handle 429 cases, but the problem is that i encounter them even when the application doesn't reach the rate limit (i get it when the application has sent only 43-46 calls, when the limit is 50). 
i have only one thread that sends the requests, so it's not a shared resources problem.
0 Likes 0 ·
Anirban avatar image
Anirban answered

If you still have an issue and feel that the limit is restricting your requirements, what you can do is you need to send your request on a help ticket and ask them for modifying the limit based on your business requirement.

1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys