Steps to reproduce
Supply any invalid access token to databricks.sql.connect, e.g.
sql.connect(
server_hostname=my_workspace_url,
http_path=http_path_to_my_warehouse,
access_token="this-is-not-a-valid-access-token"
)
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.