databricks-vscode
databricks-vscode copied to clipboard
[BUG] metadata-service auth type returns empty token
Describe the bug
Once I connect to the Databricks server from the VS Code extention, it adds .databricks/databricks.env
that includes a variable DATABRICKS_AUTH_TYPE=metadata-service
. I think this causes problems with authentication because I get the following error in the VS Code output window:
create_and_register_databricks_globals - ValueError: default auth: metadata-service: Metadata Service returned empty token. Config: host=https://"https://***.azuredatabricks.net/", auth_type=metadata-service, cluster_id=***, metadata_service_url=***. Env: DATABRICKS_HOST, DATABRICKS_AUTH_TYPE, DATABRICKS_CLUSTER_ID, DATABRICKS_METADATA_SERVICE_URL
To Reproduce Steps to reproduce the behavior:
- Follow instructions to authenticate.
- Try to connect using Databricks connect in a jupyter notebook
- Get the error above
System information:
- Paste the output ot the
Help: About
command (CMD-Shift-P).
Version: 1.83.1 (Universal)
Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
Date: 2023-10-10T23:46:55.789Z (2 wks ago)
Electron: 25.8.4
ElectronBuildId: 24154031
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.6.0
- Databricks Extension Version 1.2.2