News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Request Rate Exceeded even though requests are under the limit
Tags: rest api
Sep 9, 2020 at 4:39pm   •   1 replies  •  0 likes
Caleb Bluesummers

I noticed I kept getting the Request Rate Exceeded error, even when I thought I shouldn't, so I added debug statements and tested to verify.


I am calling https://platform.ringcentral.com/restapi/v1.0/account/accountId/extension/extensionId/presence with a single extension, every 2 seconds.


The API is in the Light usage plan, which should be 50 requests/ 60 seconds, however it is giving an error after 42-43 requests in 80 second time frame:


9/9/2020 4:24:22 PM: Starting Login for- 234
9/9/2020 4:24:23 PM: Starting Login for- 234
9/9/2020 4:24:25 PM: Starting Login for- 234
9/9/2020 4:24:27 PM: Starting Login for- 234
9/9/2020 4:24:29 PM: Starting Login for- 234
9/9/2020 4:24:31 PM: Starting Login for- 234
9/9/2020 4:24:33 PM: Starting Login for- 234
9/9/2020 4:24:35 PM: Starting Login for- 234
9/9/2020 4:24:37 PM: Starting Login for- 234
9/9/2020 4:24:39 PM: Starting Login for- 234
9/9/2020 4:24:42 PM: Starting Login for- 234
9/9/2020 4:24:43 PM: Starting Login for- 234
9/9/2020 4:24:45 PM: Starting Login for- 234
9/9/2020 4:24:47 PM: Starting Login for- 234
9/9/2020 4:24:49 PM: Starting Login for- 234
9/9/2020 4:24:51 PM: Starting Login for- 234
9/9/2020 4:24:53 PM: Starting Login for- 234
9/9/2020 4:24:55 PM: Starting Login for- 234
9/9/2020 4:24:58 PM: Starting Login for- 234
9/9/2020 4:24:59 PM: Starting Login for- 234
9/9/2020 4:25:01 PM: Starting Login for- 234
9/9/2020 4:25:04 PM: Starting Login for- 234
9/9/2020 4:25:05 PM: Starting Login for- 234
9/9/2020 4:25:07 PM: Starting Login for- 234
9/9/2020 4:25:09 PM: Starting Login for- 234
9/9/2020 4:25:11 PM: Starting Login for- 234
9/9/2020 4:25:13 PM: Starting Login for- 234
9/9/2020 4:25:15 PM: Starting Login for- 234
9/9/2020 4:25:17 PM: Starting Login for- 234
9/9/2020 4:25:19 PM: Starting Login for- 234
9/9/2020 4:25:21 PM: Starting Login for- 234
9/9/2020 4:25:23 PM: Starting Login for- 234
9/9/2020 4:25:25 PM: Starting Login for- 234
9/9/2020 4:25:27 PM: Starting Login for- 234
9/9/2020 4:25:30 PM: Starting Login for- 234
9/9/2020 4:25:31 PM: Starting Login for- 234
9/9/2020 4:25:33 PM: Starting Login for- 234
9/9/2020 4:25:36 PM: Starting Login for- 234
9/9/2020 4:25:37 PM: Starting Login for- 234
9/9/2020 4:25:40 PM: Starting Login for- 234
9/9/2020 4:25:41 PM: Starting Login for- 234
9/9/2020 4:25:43 PM: Starting Login for- 234
9/9/2020 4:25:45 PM: Starting Login for- 234


The last debug throws the Exception. So over the course of 80 seconds, there were only 43 attempted API calls.

Can I get clarification on why this is happening?


1 Answer
answered on Sep 9, 2020 at 6:12pm  

Could it be the user is logged in in other apps? You can always check the rate limit window and remain from the response header and control your app API calls.

Is there any reason why you poll the presence of an extension every second? Why don't you use the user presence notification instead?


 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us