I'd like to know how best to handle the 429 Error when using the ringcentral-csharp SDK. When the HttpResponseMessage is returned with an error code outside of 200-299, the Response constructor throws an exception. The exception does not contain details of the status error nor the headers of the HttpResponseMessage. According to the documentation:
https://developer.ringcentral.com/api-docs/latest/index.html#!#HttpStatusCodes.html 429 - Too Many Requests The number of requests is exceeded. It typically means that the client is throttled by the server due to too high request rate. Specific retry period in seconds may be specified in Retry-After response header I expected to check the status myself and detect the 429 error, inspect the response header and handle the delay before retrying. A cannot see a way to handle this error myself and read the header for Retry-After. At the moment, it look like I need to inspect the string of the error for specific text and then delay 60 seconds. Is there a better way to handle this issue? If the exception was not thrown, I believe that would solve this particular issue but I am unsure of the side effects that this would cause.
-
- Ideas
- Developers
- Partners
- Users
- News & Announcements
- RingCentral App (Desktop)
- Integrations
- Features
- Services and Products
- Fax
- Billing & Invoicing
- Analytics & Reporting
- Announcement & Message Only Extensions
- Audit Trail
- Call Log
- Call Quality
- Call Recordings
- Caller ID/CNAM
- Canada RingCentral Support
- Conference Calling
- Desk Phones
- Employee Discussions (Private)
- Getting Started
- Global Office
- HUD - Heads Up Display
- IVR
- Limited Extensions
- Live Reports
- Multi-Site
- Outlook Integration
- QoS Tool
- RingCentral Channel Partners (Private)
- RingCentral Contact Center
- RingCentral Engage Digital
- RingCentral Engage Voice
- RingCentral Meetings
- RingCentral Phone (desktop)
- RingCentral Rooms
- RingCentral Webinar
- RingCentral app (Glip)
- SMS/Text Messaging
- SSO (Single Sign-On)
- Shared Lines
- UK RingCentral Support
- User Community
- User Interface Improvements
- User Settings - Messages Tab
- User Settings - Voicemail
- User Topics
- Training Resources
- Sign in