charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
975 stars 261 forks source link

[BUG] Latest version is buggy #322

Open riahc3 opened 1 year ago

riahc3 commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

Two errors so far:

PermissionError: [Errno 13] Permission denied: 'C:\Scripts\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\logs\activity.log'

I had to delete the activity.log file so that would go away. Please do not change permissions or make them as loose as possible.

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:62852 from session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 116.0.5845.111

There isnt much of a reason that procedure would change between 114 and 116; Give this as a WARNING but attempt it anyways, dont throw a error and just stop.

Copy and paste your error

PermissionError: [Errno 13] Permission denied: 'C:\Scripts\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\logs\activity.log'

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:62852 from session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 116.0.5845.111

Screenshots

None

Value of dashboard variable

None

EastArctica commented 1 year ago

PermissionError: [Errno 13] Permission denied: 'C:\Scripts\Microsoft-Rewards-Farmer-master\Microsoft-Rewards-Farmer-master\logs\activity.log' Does your user have read/write permissions to C:\Scripts\? Either give it permissions, or run as administrator if it doesn't. If it does have permissions, we don't change any permissions. Perhaps this is a undetected-chromedriver issue?

This version of ChromeDriver only supports Chrome version 114 Current browser version is 116.0.5845.111 This issue should be fixed. Have you installed the latest version of undetected-chromedriver? The only issue that anyone should run into is the driver only supporting a higher version when you have a lower version. That will throw an error which can be fixed by passing version_main=115(or whatever version) in the webdriver.Chrome( declaration.

udu3324 commented 1 year ago

Not sure why you are having permission errors, but the second one has been mentioned in many issues. Run this to fix: pip install -r requirements.txt

riahc3 commented 1 year ago

Not sure why you are having permission errors, but the second one has been mentioned in many issues. Run this to fix: pip install -r requirements.txt

Ran it already (twice) Nothing.

EastArctica commented 1 year ago

Not sure why you are having permission errors, but the second one has been mentioned in many issues. Run this to fix: pip install -r requirements.txt

Ran it already (twice) Nothing.

Can you pip show undetected-chromedriver

riahc3 commented 1 year ago

Name: undetected-chromedriver Version: 3.5.2 Summary: ('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.') Home-page: https://github.com/ultrafunkamsterdam/undetected-chromedriver Author: UltrafunkAmsterdam Author-email: info@blackhat-security.nl License: GPL-3.0 Location: c:\program files\python310\lib\site-packages Requires: requests, selenium, websockets Required-by:

EastArctica commented 1 year ago

Name: undetected-chromedriver

Version: 3.5.2

Summary: ('Selenium.webdriver.Chrome replacement with compatiblity for Brave, and other Chromium based browsers.', 'Not triggered by CloudFlare/Imperva/hCaptcha and such.', 'NOTE: results may vary due to many factors. No guarantees are given, except for ongoing efforts in understanding detection algorithms.')

Home-page: https://github.com/ultrafunkamsterdam/undetected-chromedriver

Author: UltrafunkAmsterdam

Author-email: info@blackhat-security.nl

License: GPL-3.0

Location: c:\program files\python310\lib\site-packages

Requires: requests, selenium, websockets

Required-by:

Odd that pip isnt upgrading the package, try pip install undetected-chromedriver -U, if that doesnt work, try pip install --force-reinstall -v "undetected-chromedriver==3.5.3" also let me know which one works

riahc3 commented 1 year ago

Ran both....Now its kinda stuck on

←[38;5;39m2023-08-30 22:23:26,896 [INFO] Using undetected_chromedriver←[0m

riahc3 commented 1 year ago

Been stuck for more than 5 minutes

riahc3 commented 1 year ago

Rebooted the entire machine and now it seems to be doing it....

EastArctica commented 1 year ago

Rebooted the entire machine and now it seems to be doing it....

Odd that it got stuck... but I'm glad it worked in the end!

If your all set with this issue feel free to mark it as closed :)

klept0 commented 1 year ago

If your problem is resolved - please close this issue out.