Skip to content

Bad token is being retried in databricks.sql.connect #407

Description

@Hodnebo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions