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

HTTP Error 404 #447

Open hwhlee opened 6 months ago

hwhlee commented 6 months ago

Before submitting a bug report...

Title

Describe the bug

Runtime error HTTP Error 404 Browser does not open

Copy and paste your error

D:\Microsoft-Rewards-Farmer-master-bk>main.py ←[38;5;39m2024-02-25 19:19:21,995 [INFO] ****msrewards1234567@gmail.com****←[0m ←[38;5;39m2024-02-25 19:19:22,423 [INFO] Using default request storage←[0m ←[38;5;39m2024-02-25 19:19:22,429 [INFO] Created proxy listening on 127.0.0.1:60858←[0m ←[38;5;39m2024-02-25 19:19:22,429 [INFO] Using undetected_chromedriver←[0m ←[38;5;196m2024-02-25 19:19:23,159 [ERROR] HTTPError: HTTP Error 404: Not Found←[0m Traceback (most recent call last): File "D:\Microsoft-Rewards-Farmer-master-bk\main.py", line 24, in main executeBot(currentAccount, notifier, args) File "D:\Microsoft-Rewards-Farmer-master-bk\main.py", line 127, in executeBot with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser: File "D:\Microsoft-Rewards-Farmer-master-bk\src\browser.py", line 41, in init self.webdriver = self.browserSetup() File "D:\Microsoft-Rewards-Farmer-master-bk\src\browser.py", line 77, in browserSetup driver = webdriver.Chrome( File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in init super().init(*args, *kwargs) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver__init.py", line 258, in init__ self.patcher.auto() File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver\patcher.py", line 178, in auto self.unzip_package(self.fetch_package()) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\site-packages\undetected_chromedriver\patcher.py", line 287, in fetch_package return urlretrieve(download_url)[0] File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 241, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen return opener.open(url, data, timeout) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open response = meth(req, response) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response response = self.parent.error( File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error return self._call_chain(args) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain result = func(*args) File "C:\Users\hwhle\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

Screenshots

n/a browser does not open

Value of dashboard variable

n/a browser does not open

Emrys-Lee-XD commented 6 months ago

https://github.com/klept0/MS-Rewards-Farmer check this version

hwhlee commented 6 months ago

https://github.com/klept0/MS-Rewards-Farmer check this version

Thanks. Tried that but it still throws the same HTTP Error 404

Emrys-Lee-XD commented 6 months ago

https://github.com/klept0/MS-Rewards-Farmer check this version

Thanks. Tried that but it still throws the same HTTP Error 404

under the forlder try pip install --upgrade -r requirements.txt

or use this in PowerShell to update all pip freeze | %{$ -split '==' | Select -First 1} | %{pip install --upgrade $}

Speechy13 commented 6 months ago

https://github.com/klept0/MS-Rewards-Farmer check this version

Thanks. Tried that but it still throws the same HTTP Error 404

under the forlder try pip install --upgrade -r requirements.txt

or use this in PowerShell to update all pip freeze | %{$.split('==')[0]} | %{pip install --upgrade $}

Yep this fixed it for me by running the 'pip install --upgrade -r requirements.txt'. Thanks!

ChiIIerr commented 6 months ago

Also fixed it for me! Thank you @Emrys-Lee-XD