Hi everyone, I'm still a beginner and don't understand the problem. The bot was working for a short time, but the issue is that the bot closes Chrome after a short time, opens it again, and then gives an error message that it can no longer log in. I have a feeling that it has to do with cookies, as there are several screenshots of cookie windows in the logs folder, and Chrome doesn't keep the cookie settings. Can anyone help me with this?
PS C:\Users\ti-ma\Desktop\Bots\Microsoft-Rewards-Bot> python ms_rewards.py --quiz
2023-05-11 19:59:06,490 :: INFO :: root :: --------------------------------------------------
2023-05-11 19:59:06,491 :: INFO :: root :: -----------------------New------------------------
2023-05-11 19:59:06,491 :: INFO :: root :: --------------------------------------------------
2023-05-11 19:59:06,491 :: INFO :: root :: Bot version: v2.2.0
2023-05-11 19:59:06,491 :: INFO :: root :: logins retrieved, 2 account(s):
2023-05-11 19:59:06,492 :: INFO :: root :: jz******0@gmail.com
2023-05-11 19:59:06,492 :: INFO :: root :: jz******0@gmail.com
2023-05-11 19:59:06,492 :: INFO :: root :: --------------------------------------------------
2023-05-11 19:59:06,492 :: INFO :: root :: Current account: jz******0@gmail.com
2023-05-11 19:59:08,584 :: INFO :: root :: Logging in jz******0@gmail.com...
2023-05-11 19:59:22,911 :: ERROR :: root :: Found 'bnp_btn_accept' element by class name, but it is not visible or interactable. Attempting JS Click
2023-05-11 19:59:24,074 :: INFO :: root :: Logging successful.
2023-05-11 19:59:34,144 :: INFO :: root :: Cannot find key "mobileSearch". Mobile search is unavailable.
2023-05-11 19:59:34,213 :: INFO :: root :: Account summary:
2023-05-11 19:59:34,213 :: INFO :: root :: Available Points......... 351
2023-05-11 19:59:34,213 :: INFO :: root :: PC Search ............... 30/30
2023-05-11 19:59:34,214 :: INFO :: root :: Mobile Search ........... 0/0
2023-05-11 19:59:34,214 :: INFO :: root :: Quiz .................... 115/340
2023-05-11 19:59:34,214 :: INFO :: root :: Punch Card .............. 100/100
2023-05-11 19:59:34,214 :: INFO :: root :: ----------Work started-----------
2023-05-11 19:59:39,772 :: INFO :: root :: Number of open offers: 0
2023-05-11 19:59:39,772 :: INFO :: root :: No more dashboard offers found.
2023-05-11 19:59:39,772 :: INFO :: root :: ----------Work finished----------
2023-05-11 19:59:42,184 :: INFO :: root :: Cannot find key "mobileSearch". Mobile search is unavailable.
2023-05-11 19:59:42,246 :: INFO :: root :: Account summary:
2023-05-11 19:59:42,247 :: INFO :: root :: Available Points......... 351
2023-05-11 19:59:42,247 :: INFO :: root :: PC Search ............... 30/30
2023-05-11 19:59:42,247 :: INFO :: root :: Mobile Search ........... 0/0
2023-05-11 19:59:42,247 :: INFO :: root :: Quiz .................... 115/340
2023-05-11 19:59:42,247 :: INFO :: root :: Punch Card .............. 100/100
2023-05-11 19:59:44,412 :: INFO :: root :: --------------------------------------------------
2023-05-11 19:59:44,412 :: INFO :: root :: Current account: jz******0@gmail.com
2023-05-11 19:59:45,594 :: INFO :: root :: Logging in jz******0@gmail.com...
2023-05-11 19:59:50,078 :: ERROR :: root :: Failed to sign in. An error has occurred.
Traceback (most recent call last):
File "C:\Users\ti-ma\Desktop\Bots\Microsoft-Rewards-Bot\msreward\msr.py", line 23, in _start_browser
self.account.log_in()
File "C:\Users\ti-ma\Desktop\Bots\Microsoft-Rewards-Bot\msreward\account\login.py", line 29, in log_in
self._enter_otc()
File "C:\Users\ti-ma\Desktop\Bots\Microsoft-Rewards-Bot\msreward\account\login.py", line 51, in _enter_otc
self._switch_to_otc_method()
File "C:\Users\ti-ma\Desktop\Bots\Microsoft-Rewards-Bot\msreward\account\login.py", line 60, in _switch_to_otc_method
raise FailToSignInException('Sign in is failed. Unable to switch to OTC verification method. Did not find the "sign in another way" link.')
msreward.account.login.FailToSignInException: Sign in is failed. Unable to switch to OTC verification method. Did not find the "sign in another way" link.
2023-05-11 19:59:50,079 :: INFO :: root :: Fail to initiate.
2023-05-11 19:59:50,080 :: INFO :: root :: --------------------------------------------------
2023-05-11 19:59:50,080 :: INFO :: root :: -----------------------End------------------------
2023-05-11 19:59:50,080 :: INFO :: root :: --------------------------------------------------
Press any key to exit...
Hi everyone, I'm still a beginner and don't understand the problem. The bot was working for a short time, but the issue is that the bot closes Chrome after a short time, opens it again, and then gives an error message that it can no longer log in. I have a feeling that it has to do with cookies, as there are several screenshots of cookie windows in the logs folder, and Chrome doesn't keep the cookie settings. Can anyone help me with this?