Open vutlan96 opened 4 months ago
Any help ?
Same issue here, currently using v0.227.0. The error message has less info, just
databricks bundle validate -t stage
shell: /usr/bin/bash -e {0}
env:
DATABRICKS_TOKEN: ***
Error: Credential was not sent or was of an unsupported type for this API.
What worked for me was, instead of setting a DATABRICKS_TOKEN, setting a DATABRICKS_CLIENT_ID and DATABRICKS_CLIENT_SECRET generated for the service principal. E.g.
env:
DATABRICKS_TOKEN: ${{ secrets.STAGING_WORKSPACE_TOKEN }}
becomes
env:
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
Here's how I generated the secret, you do have to be an admin.
Used databricks/setup-cli@v0.232.1.
Description I had installed databricks cli using winget and issued a personal access token for the service principal . The token worked fine for a day however the next day I'm unable to authenticate/authorize using the same personal access token I had configured for the application.
Reproduction databricks token-management create-obo-token application-id --lifetime-seconds 7776000
Expected behavior I would be asked to enter the host name and the token and it would issue the PAT to the application id I entered above.
Is it a regression? i only have the latest version available - 0.221.1
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 this is very critical and would appreciate all the help at the latest