databricks-sdk-java icon indicating copy to clipboard operation
databricks-sdk-java copied to clipboard

[ISSUE] Error parsing Databricks Error #260

Open costichiulan opened this issue 1 year ago • 0 comments

Issue 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'

Changes

In ErrorDetails class, i added a null check before the unmodifiableMap is created.

Tests

Created an unit test in ApiErrorBodyDeserializationSuite.java

costichiulan avatar Aug 06 '24 08:08 costichiulan