Skip to content

databricks.sql.exc.RequestError: Error during request to server. type object 'Retry' has no attribute 'backoff_jitter' #516

Description

@diman82

Requirements.txt:

databricks-sql-connector[pyarrow]==3.7.2
urllib3==1.26.20

Test code:

import logging
logger = logging.getLogger("databricks.sql")
logger.setLevel(logging.DEBUG)

def debug_requests_on():
    '''Switches on logging of the requests module.'''
    from http.client import HTTPConnection
    import contextlib

    HTTPConnection.debuglevel = 1

    logging.basicConfig()
    logging.getLogger().setLevel(logging.DEBUG)
    requests_log = logging.getLogger("requests.packages.urllib3")
    requests_log.setLevel(logging.DEBUG)
    requests_log.propagate = True

debug_requests_on()

from databricks import sql
from databricks.sql.exc import DatabaseError

connection = sql.connect(
    server_hostname='dbc-e3fa0b0e-6d48.cloud.databricks.com',
    http_path="/sql/1.0/warehouses/a70cb6f048d0c768",
    access_token='my_personal_token')

Exception:

DEBUG:databricks.sql.thrift_backend:retry parameter: _retry_delay_min given_or_default 1.0
DEBUG:databricks.sql.thrift_backend:retry parameter: _retry_delay_max given_or_default 60.0
DEBUG:databricks.sql.thrift_backend:retry parameter: _retry_stop_after_attempts_count given_or_default 30
DEBUG:databricks.sql.thrift_backend:retry parameter: _retry_stop_after_attempts_duration given_or_default 900.0
DEBUG:databricks.sql.thrift_backend:retry parameter: _retry_delay_default given_or_default 5.0
DEBUG:databricks.sql.thrift_backend:Sending request: OpenSession(<REDACTED>)
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): dbc-e3fa0b0e-6d48.cloud.databricks.com:443
DEBUG:urllib3.util.retry:Incremented Retry for (url='/sql/1.0/warehouses/a70cb6f048d0c768'): DatabricksRetryPolicy(total=29, connect=None, read=None, redirect=None, status=None)
INFO:databricks.sql.thrift_backend:Error during request to server. type object 'Retry' has no attribute 'backoff_jitter': {"method": "OpenSession", "session-id": null, "query-id": null, "http-code": null, "error-message": "", "original-exception": "type object 'Retry' has no attribute 'backoff_jitter'", "no-retry-reason": "non-retryable error", "bounded-retry-delay": null, "attempt": "1/30", "elapsed-seconds": "0.2568490505218506/900.0"}
Traceback (most recent call last):

Connection is done from a personal workstation.
Any ideas how to debug this?

Activity

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

Metadata

Metadata

Assignees

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