Skip to content

propagate error message on rate limit exception#579

Merged
jimmyjames merged 3 commits intomasterfrom
ratelimit-exception
Nov 7, 2023
Merged

propagate error message on rate limit exception#579
jimmyjames merged 3 commits intomasterfrom
ratelimit-exception

Conversation

@jimmyjames
Copy link
Copy Markdown
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
@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