You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
probable change at TR 400 Client Error: Bad Request for url: https://api.traderepublic.com/api/v1/auth/web/login #413
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
Activity
Ralf71 commentedon Nov 2, 2026
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.
fix(sync): send the login headers Trade Republic now requires (#147) (#…
Send login headers on v1 web login requests (#413)
RealCLanger commentedon Nov 2, 2026
Thanks @phatloi0010 for the analysis and providing the fix. (See #414)
Merge upstream pytr (send login headers on v1 web login, IPO events)
Bump version to 0.1.7