ydb-python-sdk icon indicating copy to clipboard operation
ydb-python-sdk copied to clipboard

bug: Timeout if error in connection arguments

Open rekby opened this issue 3 years ago • 0 comments

Bug Report

YDB Python version: 2.12.1

Environment macos

Current behavior: wait until timeout if error in database name/endpoint/token and fail with timeout error

Expected behavior: fail with real error (for example bad auth), may be with faster fail.

Steps to reproduce:

import ydb

token = "..."

endpoint = "..."
database = "..."

DRIVER = ydb.Driver(
    endpoint=endpoint,
    database=database,
    credentials=ydb.credentials.AuthTokenCredentials(token)
)
DRIVER.wait(10)

print(1)

rekby avatar Feb 02 '23 15:02 rekby