You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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:
Other Information
Additional context
I was able to successfully login using
databricks auth login
The text was updated successfully, but these errors were encountered: