Skip to content

BaseRequest.createRateLimitException mapping error #678

Open
@dmical-icims

Description

@dmical-icims

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

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

  1. trigger a rate limit event in an Auth0 tenant when making a request
  2. observe error

Additional context

No response

auth0-java version

2.12.0

Java version

17

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions