databricks-vscode icon indicating copy to clipboard operation
databricks-vscode copied to clipboard

[BUG] metadata-service auth type returns empty token

Open ericfeunekes opened this issue 1 year ago • 7 comments

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:

  1. Follow instructions to authenticate.
  2. Try to connect using Databricks connect in a jupyter notebook
  3. Get the error above

System information:

  1. 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
  1. Databricks Extension Version 1.2.2

ericfeunekes avatar Oct 25 '23 14:10 ericfeunekes