-
Notifications
You must be signed in to change notification settings - Fork 132
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
BaseRequest.createRateLimitException mapping error #678
Comments
Hi @dmical-icims, Thank you for bringing this issue to our attention. I attempted to reproduce this behavior on my end but was unable to encounter the same issue. It’s certainly unusual, and I would like to gather more information to better understand and address the problem. Could you please provide additional details, such as:
In the meantime, I will also check with the team to investigate further. Thank you |
Thanks for looking into this issue. We're seeing this exception thrown consistently when the requests being sent to the following management APIs exceed the configured rate limit. GET /api/v2/organizations/{id} with Burst Request Limit: 50 RPS and Sustained Request Limit: 50/second |
Hi @dmical-icims The exception is thrown, but looking like this:
|
The Auth0 management API calls are the same as your example. We're seeing the reported issue in a production environment for the following calls:
|
Checklist
Description
We are observing the following stack trace in our production Auth0 tenant when an Auth0 management api limit is reached:
java.lang.IllegalArgumentException: argument \"content\" is null at com.fasterxml.jackson.databind.ObjectMapper._assertNotNull(ObjectMapper.java:4829) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3627) at com.auth0.net.BaseRequest.createRateLimitException(BaseRequest.java:225) at com.auth0.net.BaseRequest.createResponseException(BaseRequest.java:203) at com.auth0.net.BaseRequest.parseResponseBody(BaseRequest.java:84) at com.auth0.net.BaseRequest.execute(BaseRequest.java:139) at
Here is a corresponding Auth0 log (sanitized) that triggers this error. It appears a null response is not being handled when mapping the response body.
{ date : "2024-11-20T07:41:36.354Z", type : "api_limit", description : "Global per second organizations_read group limit has been reached", client_id : "my-client-id", client_name : "", details : { request : { method : "get", path : "/api/v2/organizations/{id}" }, response :{ } }, log_id : "90020241120074136363206000000000000001223372037538618937", tenant_name : "my-auth0-tenant" }
Reproduction
Additional context
No response
auth0-java version
2.12.0
Java version
17
The text was updated successfully, but these errors were encountered: