Closed 44ron closed 11 months ago
This is most likely due to the Chrome process being open in the background (undetected chromedriver known issue) - reboot the device and try it again
FYI, if you copied over a previous accounts.json (as I did), I had to edit permissions to make the .json executable. Mine was set as read/write only and I was getting stuck at this stage too.
That being said, I now only get to #34 (target window already closed).
FYI, if you copied over a previous accounts.json (as I did), I had to edit permissions to make the .json executable. Mine was set as read/write only and I was getting stuck at this stage too.
That being said, I now only get to #34 (target window already closed).
Ty but I didnt copy anything over, I deleted the old one and cloned the fork repo. Anyways, since then I managed to get it working, by stitching together the original and the fork and adding the webdriver fix for raspberry pi.
The script was stalling in the same place for me and I was able to fix it by making some edits to src/login.py
. I noticed that when I ran the script with the -v
option it was successfully logging in with my username and password but then stalling when it loaded https://rewards.bing.com/
. All I did was change the hostname check on line 73 in src/login.py
from
== "account.microsoft.com"
to in ("account.microsoft.com", "rewards.bing.com")
.
This caused the call to self.utils.waitUntilVisible
on line 78 to fail but I just replaced it with time.sleep(10)
since it times out after 10 seconds anyway. Definitely a quick and dirty fix but it seems to do the job.
This is typically caused when you are IP soft-banned from the specific domain. If you want to do a PR for that edit I will check it on my side or someone else can then we can push to main. I didn't think about that issue when initially dealing with this as people were having the issue of undetected_chromedriver before a fix was pushed to the repo
Pull request created: https://github.com/klept0/MS-Rewards-Farmer/pull/42
Imported - closing as completed
Writing Password... seems to hang forever no matter what I do. I only have an email and pass in my accounts.json, no proxy. Also, I'm on raspberry Pi OS, and had to swich my webdriver implementation to this in order to make it work:
driver = webdriver.Chrome( options=options, seleniumwire_options=seleniumwireOptions, driver_executable_path="/home/myuser/.local/share/undetected_chromedriver/chromedriver_copy", )
Here's the output:
2023-11-24 19:13:37,229 [INFO] Using default request storage 2023-11-24 19:13:37,344 [INFO] Created proxy listening on 127.0.0.1:45913 2023-11-24 19:13:37,345 [INFO] Using undetected_chromedriver 2023-11-24 19:13:37,483 [WARNING] could not detect version_main.therefore, we are assuming it is chrome 108 or higher 2023-11-24 19:13:43,657 [INFO] Capturing request: https://accounts.google.com/ListAccounts?gpsia=1&source=ChromiumBrowser&json=standard 2023-11-24 19:13:43,733 [INFO] Capturing request: https://redirector.gvt1.com/edgedl/chrome/dict/en-gb-10-1.bdic 2023-11-24 19:13:43,838 [INFO] Capturing response: https://accounts.google.com/ListAccounts?gpsia=1&source=ChromiumBrowser&json=standard 200 2023-11-24 19:13:43,935 [INFO] Capturing response: https://redirector.gvt1.com/edgedl/chrome/dict/en-gb-10-1.bdic 302 2023-11-24 19:13:43,967 [INFO] 127.0.0.1:47446: ProtocolException("Error in HTTP connection: Http2ZombieException('Connection or stream already dead: 1700849623.957803, False')") 2023-11-24 19:13:44,044 [INFO] Screen size: 1546x1087 2023-11-24 19:13:44,056 [INFO] Device size: 1491x936 2023-11-24 19:13:45,236 [INFO] [LOGIN] Logging-in... 2023-11-24 19:13:51,545 [INFO] [LOGIN] Entering email... 2023-11-24 19:13:53,429 [INFO] [LOGIN] Writing password...