-
Notifications
You must be signed in to change notification settings - Fork 135
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Basically a copy of #372, but happens when the token has the wrong format, (too short/long/doesn't start with "dapi", etc).
Steps to reproduce
Supply any gibberish access token to databricks.sql.connect, that does not fit the expected token format
and try to establish a connection.
sql.connect(
server_hostname=my_workspace_url,
http_path=http_path_to_my_warehouse,
access_token="random-text"
)Current behavior
The call gets stuck in a long retrying loop, eventually failing with a RequestError, which does not indicate an authentication error.
Expected behavior
The function immediately raises an exception indicating an authentication error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working