Telethon
Telethon copied to clipboard
Authorization key is forgotten while still valid
As seen in https://t.me/TelethonChat/207545:
lonami would enabling debug logging help with the Auth key issue ? not sure we'd get enough info from that i don't even know what i should be looking for to debug that tbh If you have any idea just ping me :D i wonder what would happen if you made a backup, the session broke and then tried to use the backup if it works perhaps it means we can ignore the error what was the name of the error again? I don't need to remove the session btw unless telethon does that automatically I just need to login again yeah i think telethon discards the authkey when the error happens which is why i suggested the backup hmm so backup a working session, then wait till it breaks, and then use the backup session again ? or make a new session after the backup will do (not renaming the backup or using the backup directly, but copying the backup to replace the old "broken" session)
As seen in https://t.me/TelethonChat/210902:
@lonami great news, I did the session copying thing when I got ConnectionError: auth_key generation failed 5 time(s) again and it worked so telethon is tossing the authkey when it shouldn't seems like it it's always the same request huh Always GetFullUserRequest, odd
This might be best addressed by something like https://github.com/LonamiWebs/Telethon/commit/fdb0720fe941bbcad48913a0dfe2b4fb66eaf7ef.