Skip to content
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

[ISSUE] Error parsing Databricks Error #260

Open
fvitolo opened this issue Apr 8, 2024 · 1 comment
Open

[ISSUE] Error parsing Databricks Error #260

fvitolo opened this issue Apr 8, 2024 · 1 comment

Comments

@fvitolo
Copy link

fvitolo commented Apr 8, 2024

Description
Exceptions are not deserialized correctly, the message field contains the response JSON and the string 'Cannot construct instance of com.databricks.sdk.core.error.ErrorDetail, problem: Cannot invoke "Object.getClass()" because "m" is null'

Reproduction
Invoking an API through Java SDK, and catching a DatabricksError exception (For example, attempting to delete a pinned cluster.).

Expected behavior
The DatabricksError exception is deserialized correctly, allowing you to read the errorCode, statusCode, and errorDetail fields.

Is it a regression?
Error present in versions ranging from 0.10.0 to 0.22.0.

Other Information

  • Version: 0.22.0
costichiulan added a commit to costichiulan/databricks-sdk-java that referenced this issue Aug 6, 2024
@costichiulan
Copy link

Created a PR with fix for this issue.

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

No branches or pull requests

2 participants