Skip to content

Improve OBO error message to guide users on proper WorkspaceClient instantiation#1062

Closed
smurching wants to merge 1 commit into
databricks:mainfrom
smurching:smurching/improve-obo-error
Closed

Improve OBO error message to guide users on proper WorkspaceClient instantiation#1062
smurching wants to merge 1 commit into
databricks:mainfrom
smurching:smurching/improve-obo-error

Conversation

@smurching

Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

The error message when attempting to use OBO user credentials in Databricks model serving now:

  • Explains the most common cause: instantiating WorkspaceClient at model-loading time
  • Provides clear guidance to instantiate within predict() or predict_stream()
  • Maintains existing checks for UserAuthPolicy and workspace OBO enablement
  • Links to documentation for additional help

🤖 Generated with Claude Code

How is this tested?

Unit tests

…stantiation

The error message now:
- Explains the most common cause: instantiating WorkspaceClient at model-loading time
- Provides clear guidance to instantiate within predict() or predict_stream()
- Maintains existing checks for UserAuthPolicy and workspace OBO enablement
- Links to documentation for additional help

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 3, 2025

Copy link
Copy Markdown

Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes.
If this is not necessary for your PR, please include the following in your PR description:
NO_CHANGELOG=true
and rerun the job.

@smurching smurching closed this Oct 3, 2025
@github-actions

github-actions Bot commented Oct 3, 2025

Copy link
Copy Markdown

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/sdk-py

Inputs:

  • PR number: 1062
  • Commit SHA: 2a10e0c5b54dbc0e8d1918f4c3138a79f1c50454

Checks will be approved automatically on success.

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.

1 participant