Skip to content

probable change at TR 400 Client Error: Bad Request for url: https://api.traderepublic.com/api/v1/auth/web/login #413

Closed

Description

@fft1010

Description of the bug

If I call pytry as always, I now get an error. It worked last friday, so my assumption is a change at TR over the weekend as I honestly swear, I did not change anything on my mac :-)

Traceback (most recent call last):
  File "/Users/ry90/Library/Python/3.12/bin/pytr", line 6, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/ry90/Library/Python/3.12/lib/python/site-packages/pytr/main.py", line 616, in main
    else login(
         ^^^^^^
  File "/Users/ry90/Library/Python/3.12/lib/python/site-packages/pytr/account.py", line 62, in login
    countdown = tr.initiate_weblogin()
                ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ry90/Library/Python/3.12/lib/python/site-packages/pytr/api.py", line 368, in initiate_weblogin
    r.raise_for_status()
  File "/Users/ry90/Library/Python/3.12/lib/python/site-packages/requests/models.py", line 1167, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.traderepublic.com/api/v1/auth/web/login

To Reproduce
Just run pytr as ususal

  • OS: Mac-OS
  • pytr version: 0.4.11

Activity

  1. added
    bug
    on Nov 2, 2026
  2. Ralf71 commented on Nov 2, 2026

    @Ralf71

    Same error with Windows 11.

    I am now on v0.4.10-15-g3998052, happend with the version I had before v0.4.10-6-g1fd5c3c also.

  3. RealCLanger commented on Nov 2, 2026

    @RealCLanger
    Collaborator

    Thanks @phatloi0010 for the analysis and providing the fix. (See #414)

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions