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).
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 theRateLimitInterceptor
to not eagerly close responses on retry, which was causing the inability to retrieve the response body (it was already closed).