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] SDK for Go cannot unmarshal number into Go #1158

Open
ErinKnochenhauer opened this issue Feb 25, 2025 · 0 comments
Open

[ISSUE] SDK for Go cannot unmarshal number into Go #1158

ErinKnochenhauer opened this issue Feb 25, 2025 · 0 comments
Labels
Bug The issue is a bug. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review.

Comments

@ErinKnochenhauer
Copy link

Description
I am trying to run simple commands in the CLI like databricks secrets list-scopes and am running into credential errors.

Reproduction
databricks secrets list-scopes

Debug Logs
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/secrets/scopes/list
> * Host: 
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: cli/0.212.2 databricks-sdk-go/0.29.1 go/1.21.6 os/darwin cmd/secrets_list-scopes sdk-feature/pagination auth/pat
< HTTP/2.0 401 Unauthorized
< * Access-Control-Allow-Headers: Authorization, X-Databricks-Azure-Workspace-Resource-Id, X-Databricks-Org-Id, Content-Type
< * Access-Control-Allow-Origin: *
< * Cache-Control: no-cache, no-store, must-revalidate
< * Content-Length: 98
< * Content-Type: application/json; charset=utf-8
< * Date: Tue, 25 Feb 2025 17:24:19 GMT
< * Expires: 0
< * Pragma: no-cache
< * Server: databricks
< * Vary: Accept-Encoding
< * Www-Authenticate: Bearer realm="DatabricksRealm"
< * X-Databricks-Reason-Phrase: Credential was not sent or was of an unsupported type for this API.
< * X-Request-Id: e2707fc8-fb55-907a-8f2d-4134accd2e68
< {
<   "error_code": 401,
<   "message": "Credential was not sent or was of an unsupported type for this API."
< }

Other Information

  • OS: macOS

Additional context
I was able to successfully login using databricks auth login

@tanmay-db tanmay-db added Bug The issue is a bug. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review. labels Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug The issue is a bug. Triaged The issue has been reviewed. Issues without a “Triaged” label require triage/review.
Projects
None yet
Development

No branches or pull requests

2 participants