Closed michal-mmm closed 4 months ago
Thanks for reporting!
You're right, the linked PR includes a fix for this issue. It is included in the most recent CLI release, v0.224.0.
This won't solve the issue that the token is invalid, of course, only the elaborate error message.
Description I've got this error when running
databricks bundle deploy
on CI using Service Principal. It uses env variables for authentication (DATABRICKS_TOKEN, HOST).Expected behavior No error when deploying bundle in CI.
Additional context I tried downgrading
databricks-cli
but it didn't work. I downgraded to:cli/0.221.1 databricks-sdk-go/0.42.0 go/1.21.10 os/linux cmd/bundle_validate auth/pat cicd/gitlab
I had the same error still.
I guess this is a commit containing the fix. (I think, not a go programmer) https://github.com/databricks/databricks-sdk-go/commit/b58dc70d1f15435d2f881628c773a68ae38f1657
Releasing new CLI version with updated dependecy (which is already done via dependabot https://github.com/databricks/cli/commit/10fe02075fec0b2e18d2eacf7412816d6e81d6bc) would probably fix my issue.