question

snakeboard-snakeboard13303 avatar image
snakeboard-snakeboard13303 asked ·

Message Store request returning CMN-301 Request rate exceeded despite having 7 as the 'Limit Remaining' returned in the header

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?



General Topic
1 |1000 characters needed characters left characters exceeded

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

Phong Vu avatar image
Phong Vu answered ·
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
1 |1000 characters needed characters left characters exceeded

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

snakeboard-snakeboard13303 avatar image
snakeboard-snakeboard13303 answered ·
Hello,

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

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

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.
2 comments
1 |1000 characters needed characters left characters exceeded

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

The rate limit is per app per user. Is it because that you have multiple processes running?
0 Likes 0 ·
Hello,

We do not have multiple processes running
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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