Skip to content

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

Closed

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.

Activity

  1. mbelak-dtml commented on Mar 15, 2024

    @mbelak-dtml
    Author
  2. changed the title [-]`databricks.sql.connect` stuck in an infinite loop when an invalid access token is used[/-] [+]`databricks.sql.connect` hangs in a long retrying loop when an invalid access token is used[/+] on Mar 15, 2024
  3. susodapop commented on Mar 16, 2024

    @susodapop
    Contributor

    The fix for this has merged.

  4. mbelak-dtml commented on Mar 18, 2024

    @mbelak-dtml
    Author

    Awesome, thank you very much for the quick fix!

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions