pytr icon indicating copy to clipboard operation
pytr copied to clipboard

Credentials File not created

Open LGiesken opened this issue 3 months ago • 1 comments

Description of the bug I am trying to use pytr on a Ubuntu 22.04 VM. After entering my phone number and pin I get sent the 4 digit code. After entering the sms code no credentials file is created. I also cant run any pytr commands because i am not logged in. I tried running pytr both normally and as sudo. When i create the credentials file manually it gets detected but since it is empty the login does not work.

To Reproduce Use normal login in pytr.

Expected behavior A credentials file is created.

Error log No error log displayed in the terminal. The ~/.pytr dir is empty.

Environment

  • OS: Ubuntu 22.04
  • pytr version: 0.4.3

Additional context

LGiesken avatar Oct 15 '25 19:10 LGiesken

Hi all,

I can confirm that I am also experiencing this behaviour on Ubuntu 25.04. After entering my data manually each time, the log in gets confirmed, file not created and I then experience an endless error loop.

XX:YY:ZZ Credentials file not found Please enter your TradeRepublic phone number in the format +4912345678: +XXX Please enter your TradeRepublic pin: Pin (Input is hidden): Enter the code you received to your mobile app as a notification. Enter nothing if you want to receive the (same) code as SMS. (Countdown: 31) Code: XXX XX:YY:ZZ Logged in XX:YY:ZZ Found XXX lines in history file XX:YY:ZZ Timeline transactions: Subscribing to #1... XX:YY:ZZ Connecting to websocket ... XX:YY:ZZ Connected to websocket ... XX:YY:ZZ Received error message: '1 E {"errors":[{"errorCode":"JSON_PARSE_ERROR","errorField":null,"errorMessage":"Subscription payload <{\"type\":\"timelineTransactions\",\"after\":null}> validation failed","meta":{"source":"MAPPER"}}]}' XX:YY:ZZ Error response for subscription "{'type': 'timelineTransactions', 'after': None}". Re-subscribing...

The last 2 lines repeats endlessly while counting up until I abort execution.

Thanks and cheers!

goddib avatar Oct 21 '25 10:10 goddib