Skip to content

bug: Timeout if error in connection arguments #117

Open
@rekby

Description

@rekby

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)

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