ringcentral / RingCentral.Net

RingCentral SDK for .NET
MIT License
19 stars 26 forks source link

Use TryGetValues in RateLimitExtension to prevent Exception #54

Closed agaskill closed 1 year ago

agaskill commented 1 year ago

Occasionally the API will respond with a 429 with no rate limit headers.

In this case the RateLimitExtension gets an error because it expects the X-RateLimit-Window header to be present.

This commit changes RateLimitExtension to use TryGetValues instead of GetValues since the header may not exist in the response.

resolves #53

tylerlong commented 1 year ago

Released 1.0.2