Skip to content

databricks.sql.connect hangs in a long retrying loop when an invalid access token is used #372

@mbelak-dtml

Description

@mbelak-dtml

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions