-
Notifications
You must be signed in to change notification settings - Fork 42
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] apierr.GetAPIError
does not unmarshal ErrorCode
correctly
#999
Comments
Hi @nkvuong,
Do you have an example of an input/ouput pair for |
it happened in the failed test in this PR from TF provider - databricks/terraform-provider-databricks#3832. The PR simply replaces the deprecated struct in TF with the Go SDK equivalent. For example Since the only change is replacing the structs, we can simply compare the 2 structs, and the difference is the missing field tags databricks-sdk-go/apierr/errors.go Lines 30 to 39 in 9bbc945
|
I see, thanks! I think the core of the problem you're facing is that It seems that I think there's two ways we can resolve this:
What do you think? |
Closing this issue as "work as expected" |
Description
apierr.GetAPIError
does not unmarshalErrorCode
correctlyReproduction
Below is a simplified version of
parseErrorFromResponse
Expected behavior
errorBody should be populated with ErrorCode & Message, however, ErrorCode is nil in this case
The text was updated successfully, but these errors were encountered: