Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate error message on rate limit exception #579

Merged
merged 3 commits into from
Nov 7, 2023

Conversation

jimmyjames
Copy link
Contributor

Changes

Prior to this change, any error messages returned from Auth0 APIs caused by a 429 (rate limit exceeded) were not propagated to the exception. This change updates the RateLimitException class to accept message parameters, populates those values from the response, and updates the RateLimitInterceptor to not eagerly close responses on retry, which was causing the inability to retrieve the response body (it was already closed).

@jimmyjames jimmyjames temporarily deployed to internal November 2, 2023 19:53 — with GitHub Actions Inactive
@jimmyjames jimmyjames marked this pull request as ready for review November 2, 2023 20:28
@jimmyjames jimmyjames requested a review from a team as a code owner November 2, 2023 20:28
@jimmyjames jimmyjames merged commit 215a37c into master Nov 7, 2023
10 checks passed
@jimmyjames jimmyjames deleted the ratelimit-exception branch November 7, 2023 01:35
This was referenced Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants