Jessecar96 / SteamBot

Automated bot software for interacting with Steam Trade
http://scrap.tf
MIT License
1.33k stars 910 forks source link

Invalid session when trying to fetch trade confirmations. #1066

Open doktokto opened 7 years ago

doktokto commented 7 years ago
[2017-02-27 00:11:15] ERROR: Invalid session when trying to fetch trade confirmations.
[2017-02-27 00:11:15] WARN: Disconnected from Steam Network!
[2017-02-27 00:11:16] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:11:17] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:11:19] SUCCESS: User Authenticated!
[2017-02-27 00:11:19] SUCCESS: Steam Bot Logged In Completely!
...
[2017-02-27 00:15:44] ERROR: Invalid session when trying to fetch trade confirmations.
[2017-02-27 00:15:44] WARN: Disconnected from Steam Network!
[2017-02-27 00:15:45] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:45] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:46] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:46] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:47] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:47] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:48] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:48] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:49] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:49] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:51] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:51] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:52] ERROR: Login Error: TwoFactorCodeMismatch
[2017-02-27 00:15:52] SUCCESS: Regenerated 2FA code.
[2017-02-27 00:15:53] ERROR: Login Error: InvalidPassword

InvalidPassword because bot tried to login too much (each second). So, it's a first problem. I will fix it in my code now. Second problem, and I do not know how to fix it, after authentication steam shows login page when trying to fetch confirmations or any steam page. Sometimes steam shows all correctly but minutes or hours later ask to login again, and this happens again and again and again. In browser all okay. Is there any way to "remember my password" or something so cookies will live longer? Why steam shows login page right after authentication?