News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Message Store request returning CMN-301 Request rate exceeded despite having 7 as the 'Limit Remaining' returned in the header
Tags: rate limits
Dec 31, 2018 at 4:27am   •   2 replies  •  0 likes

When making requests on the restapi/v1.0/account/~/extension/{extensionNumber}/message-store" we are receiving CMN-301 Request rate exceeded despite seeing 7 returned as the limit remaining int in the header.

This also takes into account the 3 requests per second throttle. We wait 0.34 seconds per request to manage it.

Any ideas?

2 Answers
answered on Dec 31, 2018 at 8:55am  

The 0.34 sec wait time per request is to handle the per second limiter discussed here:

It is to not designed to manage the 50 requests per minute on the light limit group.

It appears that the header X-Rate-Limit-Remaining is invalid.

Should the solution not use this value to handle the request throttling? It is used throughout the application for different end points and it doesn't seem to have this issue. 

For example the endpoint: restapi/v1.0/account/~/call-log uses the exact same architecture where the limiter inspects the remaining header and if it's 0 it waits 60 seconds and continues normally.

answered on Dec 31, 2018 at 8:41am  
I am not sure about the limit remaining in the header. But within the light limit group, you can send 50 requests per 60 seconds. That makes about 1.2 secs per request. Therefore, waiting for 0.34 sec to send each request will cause throttling.

+ Phong


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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