Skip to content

SDK ClassCastException during downtime #410

@p0d3x

Description

@p0d3x

Hello, I wanted to report this as a bug, but it doesn't let me. So it's a feature request now.

This code:
https://github.com/auth0/auth0-java/blob/master/src/main/java/com/auth0/exception/APIException.java#L159

caused:

java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.String (java.lang.Integer and java.lang.String are in module java.base of loader 'bootstrap')
	at com.auth0.exception.APIException.obtainExceptionError(APIException.java:159)
	at com.auth0.exception.APIException.<init>(APIException.java:36)
	at com.auth0.net.ExtendedBaseRequest.createResponseException(ExtendedBaseRequest.java:131)
	at com.auth0.net.ExtendedBaseRequest.parseResponse(ExtendedBaseRequest.java:66)
	at com.auth0.net.BaseRequest.execute(BaseRequest.java:35)

When the Auth0 API was down/not available on March 5th between 02:46 and 02:47 UTC.

Ideally this should not cause an unhandled exception in this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug reportThis issue reports a suspect bug or issue with the SDK itselfneeds investigationAn issue that has more questions to answer or otherwise needs work to fully understand the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions