Skip to content

Conversation

@fjakobs
Copy link
Collaborator

@fjakobs fjakobs commented Dec 8, 2025

Without the fix we are getting this error in a deployed app with OBO enabled:

[{"error":{"json":{"message":"validate: more than one authorization method configured: oauth and pat. Config: host=adb-xxxxxx.azuredatabricks.net, token=***, client_id=yyyyyy, client_secret=***, warehouse_id=zzzzzz. Env: DATABRICKS_HOST, DATABRICKS_CLIENT_ID, DATABRICKS_CLIENT_SECRET, DATABRICKS_WAREHOUSE_ID","code":-32603,"data":{"code":"INTERNAL_SERVER_ERROR","httpStatus":500,"path":"executeSQL"}}}}]

@fjakobs fjakobs requested review from a team, MarioCadenas and ditadi December 8, 2025 10:39
let userDatabricksClient: WorkspaceClient | undefined;
if (userToken) {
const host = process.env.DATABRICKS_HOST;
if (userToken && host) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a blocker, but maybe it would be nice to log if the host doesn't exist.

 if (userToken && !host) {
    console.warn("[AppKit] User token present but DATABRICKS_HOST not set; user client unavailable");
  }

@fjakobs fjakobs merged commit 605a2ab into main Dec 8, 2025
3 checks passed
@fjakobs fjakobs deleted the fix-user-client branch December 8, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants