Skip to content

Login attempt with new v2.2.0 blew up in my face #80

@DROBNJAK

Description

@DROBNJAK

Authentication with my cown credentials worked flawlessly with v2.1.0. But . . .

I just installed a fresh TvDatafeed v2.2.0 made by semoi@GHb and tried my regular login from Python script, like:

objTV = TvDatafeed(os.getenv("TV_ID"), os.getenv("TV_PWD"))

I can still connect to TradingVeiw if I don't use any credentials, but that's decidedly less cool. This works fine:

objTV = TvDatafeed()

Any help would be appreciated. Importantly, I don't have any kind of 2FA on my account. My Python version is Python 3.12.7.

I got a ton of error garbage back. I deleted what looks unimportant. Here is that angry error response.

Error response: {'error': '', 'user': {'id': X_X_X_X_X, 'username': 'X_X_X_X_X', 'date_joined': '2024-04-12T10:03:43.699491', 'status': '', 'ignore_list': [], 'has_phone': False, 'do_not_track': False, 'is_non_pro_confirmed': False, 'profile_data_filled': True, 'is_corporation_user': False, 'is_symphony': False, 'is_active_partner': False, 'is_broker': False, 'broker_plan': None, 'badges': [], 'permissions': {}, .....}
Traceback (most recent call last):
File "C:.....\TradingView_TEST.py", line 60, in
objTV = TvDatafeed("X_X_X_X_X", "X_X_X_X_X")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:......venv\Lib\site-packages\tvDatafeed\main.py", line 354, in init
self.token = self.__auth(username, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:......venv\Lib\site-packages\tvDatafeed\main.py", line 460, in __auth
user_data = auth_handler.login_user(
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:.....venv\Lib\site-packages\tvDatafeed\auth.py", line 224, in login_user
raise AuthenticationError(f"Login failed: {error_msg} (code: {error_code})")
tvDatafeed.exceptions.AuthenticationError: Login failed: (code: unknown)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions