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

databricks : Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug in the Databricks SDK for Go or the underlying REST API[ISSUE] #871

Open
gajendra-singh30 opened this issue Mar 27, 2024 · 3 comments

Comments

@gajendra-singh30
Copy link

I'm encountering an issue connecting Databricks to the Databricks CLI. Whenever I attempt to execute any command on Databricks, I receive the following error:

PS C:\Users> databricks catalogs list
databricks : Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug
in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at
https://github.com/databricks/databricks-sdk-go/issues. Request log:
At line:1 char:1

  • databricks catalogs list
  •   + CategoryInfo          : NotSpecified: (Error: unexpect...s. Request log::String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    
GET /api/2.1/unity-catalog/catalogs
> * Host: 
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: cli/0.216.0 databricks-sdk-go/0.36.0 go/1.21.8 os/windows cmd/catalogs_list sdk-feature/pagination auth/pat
< HTTP/2.0 403 Forbidden
< * Content-Length: 75
< * Content-Type: application/json; charset=utf-8
< * Date: Wed, 27 Mar 2024 16:29:22 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Unauthorized access to Org: 6777798819429555
< {
<   "error_code": 403,
<   "message": "Unauthorized access to Org: 6777798819429555"
< }
@m-kirsch
Copy link

m-kirsch commented Apr 5, 2024

I have the same issue.

@kwulffert23
Copy link

I'm getting the issue when triggering a PR from the CLI, it worked once and then it stopped working with the error:
`Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:

GET /api/2.0/preview/scim/v2/Me
> * Host: 
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: cli/0.212.2 databricks-sdk-go/0.29.1 go/1.21.6 os/linux cmd/bundle_validate auth/pat cicd/github
< HTTP/2.0 403 Forbidden
< * Content-Length: 126
< * Content-Type: application/json; charset=utf-8
< * Date: Tue, 30 Apr [20](https://github.com/kwulffert23/kw_mlops/actions/runs/8896718188/job/24430146666#step:4:21)24 14:41:36 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Source IP address: 40.71.163.68 is blocked by Databricks IP ACL for workspace: 1444828305810485
< {
<   "error_code": 403,
<   "message": "Source IP address: 40.71.163.68 is blocked by Databricks IP ACL for workspace: 1444828305810485"
< }

Error: Process completed with exit code 1.`
image

When it worked once:
image

All the workflows actions triggered by the PRs after the first one are failing with the same error:
image

@DJSaunders1997
Copy link

I'm getting the same issue, any news on a fix?

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

4 participants