Giter Site home page Giter Site logo

klept0 / ms-rewards-farmer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from charlesbel/microsoft-rewards-farmer

202.0 202.0 41.0 797 KB

A simple bot that uses Selenium to farm M$ Rewards in Python

License: MIT License

Python 99.91% Batchfile 0.09%
bot python python-script selenium

ms-rewards-farmer's Introduction

๐Ÿ“ About Me:

๐Ÿ–ฅ Tech Lover | ๐Ÿค– Gadget Freak | ๐ŸŽž Movie Nerd | ๐ŸŽฎ Xbox Player

๐ŸŒ Socials:

Telegram Instagram Reddit TikTok Twitch Twitter YouTube

๐Ÿ’ป Tech Stack:

Python JavaScript Alfred

๐Ÿ“Š GitHub Stats:

klept0's GitHub stats


Fuel my caffeine addiction and buy me a coffee!

Ko-Fi


klept0

ms-rewards-farmer's People

Contributors

cal4 avatar charlesbel avatar dependabot[bot] avatar eastarctica avatar eltociear avatar emrys-lee-xd avatar haobinliang avatar jdeath avatar jeondungpoop avatar jungx098 avatar junyanooo avatar klept0 avatar ltcmdstone avatar maskboyz avatar mattchan8 avatar mixingsneax avatar nicoacu avatar omegablurz avatar polettoweb avatar rakosi2 avatar sealldeveloper avatar shinji257 avatar shoginn avatar snyk-bot avatar theantic avatar thehimanshurastogi avatar titaniumtown avatar tiwing avatar udu3324 avatar vitox013 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ms-rewards-farmer's Issues

[BUG] Endless Writing Password, Http2ZombieException...

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...

[BUG] Desktop Searches Error

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

The Desktop searches arent completed with the following error message. I have the country and language code -fr set. Seems not to happen on other countries.

Copy and paste your error

2024-02-02 09:08:10,037 [ERROR] JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "C:\xxx\main.py", line 47, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\main.py", line 249, in executeBot
accountPointsCounter = Searches(desktopBrowser).bingSearches(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\src\searches.py", line 61, in bingSearches
search_terms = self.getGoogleTrends(numberOfSearches)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\src\searches.py", line 31, in getGoogleTrends
trends = json.loads(r.text[6:])
^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\Python312\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\Python312\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\xxx\Python312\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Screenshots

image

Value of dashboard variable

[BUG] errors after "more promos"

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Error after more promos section

Copy and paste your error

2024-04-26 17:01:09,471 [WARNING] Error occurred: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=124.0.6367.91)
Stacktrace:
GetHandleVerifier [0x003AC113+48259]
(No symbol) [0x0033CA41]
(No symbol) [0x00230A17]
(No symbol) [0x0020E02B]
(No symbol) [0x0029742E]
(No symbol) [0x002A9476]
(No symbol) [0x00290B36]
(No symbol) [0x0026570D]
(No symbol) [0x002662CD]
GetHandleVerifier [0x00666533+2908323]
GetHandleVerifier [0x006A3B4B+3159739]
GetHandleVerifier [0x0044505B+674763]
GetHandleVerifier [0x0044B21C+699788]
(No symbol) [0x00346244]
(No symbol) [0x00342298]
(No symbol) [0x0034242C]
(No symbol) [0x00334BB0]
BaseThreadInitThunk [0x75F87BA9+25]
RtlInitializeExceptionChain [0x77C9BB9B+107]
RtlClearBits [0x77C9BB1F+191]

Screenshots

Untitled

Value of dashboard variable

https://gist.github.com/SteveeeeeS/199799b712446a3be0a001beb8283264

[BUG] Bot does not continue after confirming 2fa code

Description

I start the bot. Then it first starts chrome etc. Then When it askes for the 2fa code confirmation and I press enter. It does log me in and go to the rewards dashbord (I used -v to observe its behavour). Then after de dashbord is loaded it just stops doing anything. I have waited for over 4 hours and still nothing happend.
I have tried this multiple times and also removed the session with eatch atempt.

Expected Behavior

After confirming the 2fa code it schould continue to the dashbord and start doing the punsh cards.

Actual Behavior

After confirming 2fa it does log me in and then continue to the dashbord. But stops doing anything afer that. And also shows no errors.

Possible Fix

I don't ecactly understand how the code works but it at least lies in the part where afer logging in/ confirming the 2fa code. It returns to the dashbord and then something goes wrong during the step after that.

Steps to Reproduce

  1. Start the main.py with the -d argument and the -v argument
  2. Use an account with 2fa
  3. Get the 2fa code required prompt
  4. Fill in the correct 2fa code
  5. Press enter after aproving 2fa
  6. Wait between 2-4 hours
  7. See that the bot has not continued but did succesfully log in.

log:
2024-01-25 11:59:51,627 [INFO] Using default request storage
2024-01-25 11:59:51,656 [INFO] Created proxy listening on 127.0.0.1:53416
2024-01-25 11:59:51,656 [INFO] Using undetected_chromedriver
2024-01-25 11:59:52,572 [INFO] patching driver executable C:\Users\trist\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe
2024-01-25 11:59:53,418 [INFO] Screen size: 2142x1445
2024-01-25 11:59:53,419 [INFO] Device size: 2087x1294
2024-01-25 11:59:53,513 [INFO] [LOGIN] Logging-in...
2024-01-25 12:00:01,051 [INFO] [LOGIN] Entering email...
2024-01-25 12:00:11,311 [ERROR] [LOGIN] 2FA Code required !
2024-01-25 12:00:11,328 [ERROR] [LOGIN] 2FA code: 44
2024-01-25 12:00:11,328 [INFO] [LOGIN] Press enter when confirmed on your device...

---> After here it does not continue there is no more log even after hours of wating.

Context

Because the bot did not continue after logging in / confirming 2fa, it makes the bot unusable for me.

Your Environment

  • Version used: latest version of this repro by downloading the zip.
  • Environment name and version (e.g. Chrome ver): Chrome version: Version 121.0.6167.86 (Official build) (64-bits)
  • Operating System and version: Windows 10 version 22H2
  • Latest version of python as of now and latest version of all the required packages

[BUG] Error caused by blinker version

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

When running the script with blinker version 1.8.0 or newer the script crashes, resolved it by reinstalling version 1.7.0. Would like to know if it was just me having this happen.

Copy and paste your error

Traceback (most recent call last):
File "C:\Users{USER}\Documents\MS-Rewards-Farmer\main.py", line 18, in
from src import (
File "C:\Users{USER}\Documents\MS-Rewards-Farmer\src_init_.py", line 1, in
from .browser import Browser
File "C:\Users{USER}\Documents\MS-Rewards-Farmer\src\browser.py", line 8, in
import seleniumwire.undetected_chromedriver as webdriver
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\undetected_chromedriver_init_.py", line 1, in
from .webdriver import Chrome, ChromeOptions
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 12, in
from seleniumwire.inspect import InspectRequestsMixin
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\inspect.py", line 7, in
from seleniumwire import har
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\har.py", line 11, in
from seleniumwire.thirdparty.mitmproxy import connections
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\connections.py", line 10, in
from seleniumwire.thirdparty.mitmproxy.net import tls, tcp
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\net\tls.py", line 15, in
import seleniumwire.thirdparty.mitmproxy.options
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\options.py", line 5, in
from seleniumwire.thirdparty.mitmproxy import optmanager
File "C:\Users{USER}\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\optmanager.py", line 9, in
import blinker._saferef
ModuleNotFoundError: No module named 'blinker._saferef'

Screenshots

Value of dashboard variable

HTTP Error 404: Not Found

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

I cant seem to use undetected_chromedriver and I cant find out why since this only started happening today.

Copy and paste your error

2024-02-15 08:01:22,241 [ERROR] HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
File "C:\Users\james\farmer2\MS-Rewards-Farmer\main.py", line 47, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\farmer2\MS-Rewards-Farmer\main.py", line 221, in executeBot
with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\farmer2\MS-Rewards-Farmer\src\browser.py", line 41, in init
self.webdriver = self.browserSetup()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\farmer2\MS-Rewards-Farmer\src\browser.py", line 86, in browserSetup
driver = webdriver.Chrome(
^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in init
super().init(*args, **kwargs)
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver_init_.py", line 258, in init
self.patcher.auto()
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 178, in auto
self.unzip_package(self.fetch_package())
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\site-packages\undetected_chromedriver\patcher.py", line 287, in fetch_package
return urlretrieve(download_url)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 240, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen
return opener.open(url, data, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 521, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 630, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 559, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "C:\Users\james\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 639, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

Screenshots

the window will not open.

Value of dashboard variable

https://gist.github.com/Xtrau505/b2b21785ab2b6deb5f3c2a803b4e6250

For those who have 404 error when running script, CHECK THIS

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Use Win+R to run
%LOCALAPPDATA%\Programs\Python\**PythonVERSION**\Lib\site-packages
change PythonVERSION to your version like Python38, Python311,etc.
Then find
patcher.py
Open it with notpad o any coding program like Visual Studio Code
Using Ctrl+F find
download_url = "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/%s/%s/%s"
should be in line 283
then replace it with
download_url = "https://storage.googleapis.com/chrome-for-testing-public/%s/%s/%s"
save and quit
run script as usual

Copy and paste your error

Credit to @klept0 and @dudeua

Screenshots

ๅฑๅน•ๆˆชๅ›พ 2024-02-17 095420
ๅฑๅน•ๆˆชๅ›พ 2024-02-17 100047

Value of dashboard variable

none

[BUG] mobile

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

hi its codebanna69, some of my code is used in this project, i was wondering why mobile searches are disabled, as it is already written in the code. is this a bug or a feature.

Copy and paste your error

Screenshots

Value of dashboard variable

[BUG] Cannot connect to chrome

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Note: Im new to github and dont know much about python or debugging. I also checked other closed issues that were the same as mine but I don't understand it.

After searching up some tutorials on google, I added the main.py to the task scheduler to run this farmer overnight. The program worked correctly so I went to bed hoping that this would run it. The next morning I realized that the points I had on ms rewards never changed, so I ran the main.py through my basic task on task scheduler. It opened up cmd prompt and ran the code like normal until an error occured before logging in. I tried clearing my session folder like the description of this project said but the files are open somewhere else and I dont know where. Then I ran the code manually without task scheduler and the same error occurred. It worked before I just dont know whats wrong, any help? I also checked other closed issues that were the same as mine but I don't understand it.

Copy and paste your error

โ†[38;5;226m2024-04-20 13:30:37,341 [WARNING] Error occurred: Message: unknown error: cannot connect to chrome at 127.0.0.1:(dont know if this is private or not)

Screenshots

image

Value of dashboard variable

https://gist.github.com/Contamiply/6072abbdcf70936df4bb2366a0ff4bbf

[BUG] chromedriver and chromium v121 on Debian is flawed

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Been running the bot on chromium ,on a raspberry pi with hardly any issues in the past
But recently with newer versions of chromium and its web security lately
Running in headless mode Iโ€™m seeing the images and cookies blocked on http sites bing ect,
Which i really think is causing issues of the bot hanging
All the time
Iโ€™ve tried adding the argument โ€”disable-web-security
To browser.py along with -user-dater-dir=/home/******/temp
But seems to still run with standard security ,as Iโ€™m trying to turn it off,tried turning it off in settings as it runs in headless mode but doesnโ€™t alter anything and still http sites cookies and images are blocked
can anyone assist
Tried to downgrade chromium with the matching chromedriver but seems to be impossible on Debian looked everywhere
If anyone can point me on how to get chromium downgraded with a matching chromedriver on raspberry pi if thereโ€™s no solution to turning off security on the latest chromium
Thanks

Copy and paste your error

As described

Screenshots

Later

Value of dashboard variable

Na

[BUG] 2FA code is missing in log

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Running Docker version so I can't push enter and errors. I do get the 2FA notification on my phone but since I don't know the 2-digit code, I don't know which one to select. I see in #66 that the code should be under the Code required line but I don't have that.

Copy and paste your error

2024-05-06 06:07:32,959 [INFO] @hotmail.com
2024-05-06 06:07:33,882 [INFO] Using default request storage
2024-05-06 06:07:33,891 [INFO] Created proxy listening on 127.0.0.1:35815
2024-05-06 06:07:33,891 [INFO] Using undetected_chromedriver
2024-05-06 06:07:34,698 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2024-05-06 06:07:35,397 [INFO] Screen size: 2048x1524
2024-05-06 06:07:35,397 [INFO] Device size: 1993x1373
2024-05-06 06:07:35,609 [INFO] [LOGIN] Logging-in...
2024-05-06 06:07:39,260 [INFO] [LOGIN] Entering email...
2024-05-06 06:07:52,833 [ERROR] [LOGIN] 2FA Code required !
2024-05-06 06:07:52,858 [INFO] [LOGIN] Press enter when confirmed on your device...
2024-05-06 06:07:52,865 [WARNING] Error occurred: EOF when reading a line. Retrying... | @hotmail.com
2024-05-06 06:08:02,865 [INFO] @hotmail.com
2024-05-06 06:08:03,908 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2024-05-06 06:08:04,356 [INFO] Screen size: 2048x1524
2024-05-06 06:08:04,356 [INFO] Device size: 1993x1373
2024-05-06 06:08:04,463 [INFO] [LOGIN] Logging-in...
2024-05-06 06:08:08,349 [INFO] [LOGIN] Entering email...
2024-05-06 06:08:21,798 [ERROR] [LOGIN] 2FA Code required !
2024-05-06 06:08:21,859 [INFO] [LOGIN] Press enter when confirmed on your device...
2024-05-06 06:08:21,868 [WARNING] Error occurred: EOF when reading a line. Retrying... | @hotmail.com

Screenshots

headless

Value of dashboard variable

headless

[BUG] Mobile not working

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

When the script gets to Mobile points it stops and errors out trying to read the browser version.

Copy and paste your error

cannot read browser version

Screenshots

no screenshot

Value of dashboard variable

Just the mobile site having issues I am wondering if we need a new agent string?

the 15 minute timer possible solutions thread

Description

not a bug as such but can you adjust the searching to do so many as now microsoft has introduced a cool down said to be 15 minute between every 3 searches to stop bots i suspect
see here

Expected Behavior

Actual Behavior

Possible Fix

3 searches per account ,then we can just create windows task schedule to run the task every 20 mins or so to get around the cooldown?

Steps to Reproduce

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome ver):
  • Operating System and version:

[BUG] Error occurred: Message: no such execution context

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

This occurs every time I run it...
I am currently running on MacOS with M2 Chip. I am also using python 3.11

Copy and paste your error

2024-03-28 23:11:32,213 [INFO] <------->@outlook.com
2024-03-28 23:11:34,150 [INFO] Using default request storage
2024-03-28 23:11:34,165 [INFO] Created proxy listening on ::ffff:127.0.0.1:59792
2024-03-28 23:11:34,166 [INFO] Using undetected_chromedriver
2024-03-28 23:11:35,886 [INFO] patching driver executable /Users/user/Library/Application Support/undetected_chromedriver/undetected_chromedriver
2024-03-28 23:11:39,973 [INFO] Screen size: 2277x1447
2024-03-28 23:11:39,973 [INFO] Device size: 2222x1296
2024-03-28 23:11:40,671 [INFO] [LOGIN] Logging-in...
2024-03-28 23:11:48,098 [WARNING] Error occurred: Message: no such execution context
(Session info: chrome=123.0.6312.87)
Stacktrace:
0 undetected_chromedriver 0x0000000100f7c128 undetected_chromedriver + 4596008
1 undetected_chromedriver 0x0000000100f73e93 undetected_chromedriver + 4562579
2 undetected_chromedriver 0x0000000100b77225 undetected_chromedriver + 381477
3 undetected_chromedriver 0x0000000100b6028a undetected_chromedriver + 287370
4 undetected_chromedriver 0x0000000100b5f14a undetected_chromedriver + 282954
5 undetected_chromedriver 0x0000000100b5f5df undetected_chromedriver + 284127
6 undetected_chromedriver 0x0000000100b6e674 undetected_chromedriver + 345716
7 undetected_chromedriver 0x0000000100b832cb undetected_chromedriver + 430795
8 undetected_chromedriver 0x0000000100b8858b undetected_chromedriver + 451979
9 undetected_chromedriver 0x0000000100b5fbdf undetected_chromedriver + 285663
10 undetected_chromedriver 0x0000000100b82f0d undetected_chromedriver + 429837
11 undetected_chromedriver 0x0000000100c0325f undetected_chromedriver + 954975
12 undetected_chromedriver 0x0000000100be2ee3 undetected_chromedriver + 823011
13 undetected_chromedriver 0x0000000100bb3be4 undetected_chromedriver + 629732
14 undetected_chromedriver 0x0000000100bb479e undetected_chromedriver + 632734
15 undetected_chromedriver 0x0000000100f42042 undetected_chromedriver + 4358210
16 undetected_chromedriver 0x0000000100f46c8d undetected_chromedriver + 4377741
17 undetected_chromedriver 0x0000000100f46603 undetected_chromedriver + 4376067
18 undetected_chromedriver 0x0000000100f46f35 undetected_chromedriver + 4378421
19 undetected_chromedriver 0x0000000100f2ba65 undetected_chromedriver + 4266597
20 undetected_chromedriver 0x0000000100f472bd undetected_chromedriver + 4379325
21 undetected_chromedriver 0x0000000100f1e0b0 undetected_chromedriver + 4210864
22 undetected_chromedriver 0x0000000100f64af8 undetected_chromedriver + 4500216
23 undetected_chromedriver 0x0000000100f64c71 undetected_chromedriver + 4500593
24 undetected_chromedriver 0x0000000100f73ad3 undetected_chromedriver + 4561619
25 libsystem_pthread.dylib 0x00007ff80346818b _pthread_start + 99
26 libsystem_pthread.dylib 0x00007ff803463ae3 thread_start + 15
. Retrying... | <----->@outlook.com

Screenshots

The browser just ends up closing. I cant take a screenshot, but it runs normally, until it crashes, and the window closes.

Value of dashboard variable

[BUG] Stuck at Logging in - not filing in MS login info...

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Starting about a week ago, the bot no longer works for me. In -v mode, I can see the Chrome browser launching the Microsoft Login page, but the bot fails to fill in the account information. Prior to this, the bot had worked for me for quite a while. Any idea what broke?

I also tried to fill the username and password fields myself but I get a TimeoutException

Copy and paste your error

image

Screenshots

image

Value of dashboard variable

https://gist.github.com/shopbuy11/a8417970aaa4a3a98621ef9afdb7602f

[BUG] ModuleNotFoundError: No module named 'blinker._saferef'

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

selenium-wire: How to resolve No module named blinker._saferef
kvฤ›
01
2024
Out of nowhere all of our Python projects that utilize selenium-wire suddenly stopped working when redeployed. It turns out that selenium-wire is no longer maintained as of January 2024 and the project depends on package blinker, specifically file blinker._saferef that is no longer available in latest blinker versions 1.8.0 and 1.8.1.

The solution is to add direct dependency on blinker<1.8.0 into your project in order to prevent selenium-wire from automatically downloading the latest blinker version.

https://www.marekrost.cz/selenium-wire-how-to-resolve-blinker-saferef

Copy and paste your error

ModuleNotFoundError: No module named 'blinker._saferef'

Screenshots

AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\optmanager.py", line 9, in
import blinker._saferef

Value of dashboard variable

AppData\Local\Programs\Python\Python312\Lib\site-packages\seleniumwire\thirdparty\mitmproxy\optmanager.py", line 9, in
import blinker._saferef

my fix doesnt work

klept0, im still working on a fix for the list index. apparently ms patched it? sometimes it does more than 35 searches.

[BUG] hangs after logging in, stuck on "Writing password..."

Description

The script freezes after "Writing password..." and eventually crashes (probably from disconnection). Running with -v shows that the browser is either stuck on the "Stay signed in?" page or the ms rewards home page. The pages are fully functional, the script just doesn't do anything.

Your Environment

  • Version used: latest as of 1/24/2024
  • Environment name and version (e.g. Chrome ver): Version 121.0.6167.85 (Official Build) (arm64)
  • Operating System and version: macOS 14.2.1

[BUG] i can't do daily set

idk why but the bot do that since 1 week

Description

2023-11-28 13:36:51,595 [INFO] [email protected]
2023-11-28 13:36:53,392 [INFO] Using default request storage
2023-11-28 13:36:53,416 [INFO] Created proxy listening on 127.0.0.1:54740
2023-11-28 13:36:53,416 [INFO] Using undetected_chromedriver
2023-11-28 13:36:56,405 [INFO] patching driver executable C:\Users\hoho\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe
2023-11-28 13:36:57,203 [INFO] Screen size: 1595x1126
2023-11-28 13:36:57,204 [INFO] Device size: 1540x975
2023-11-28 13:36:57,283 [INFO] [LOGIN] Logging-in...
2023-11-28 13:37:01,449 [INFO] [LOGIN] Writing email...
2023-11-28 13:37:02,717 [INFO] [LOGIN] Writing password...
2023-11-28 13:39:29,701 [INFO] [LOGIN] Logged-in !
2023-11-28 13:43:48,704 [INFO] [LOGIN] Ensuring login on Bing...
2023-11-28 13:43:56,423 [INFO] [LOGIN] Logged-in successfully !
2023-11-28 13:43:56,423 [INFO] [POINTS] You have 5โ€ฏ650,00 points on your account
2023-11-28 13:43:56,424 [INFO] [DAILY SET] Trying to complete the Daily Set...
2023-11-28 13:48:56,773 [ERROR] TimeoutException: Message: timeout: Timed out receiving message from renderer: 299.410
(Session info: chrome=119.0.6045.160)
Stacktrace:
GetHandleVerifier [0x006E72A3+45731]
(No symbol) [0x00672D51]
(No symbol) [0x0056880D]
(No symbol) [0x0055ABF2]
(No symbol) [0x0055AA9A]
(No symbol) [0x005597F2]
(No symbol) [0x00559FFA]
(No symbol) [0x00563882]
(No symbol) [0x00570BAA]
(No symbol) [0x00573BA6]
(No symbol) [0x0055A52C]
(No symbol) [0x00570AC0]
(No symbol) [0x005CB8C3]
(No symbol) [0x005B7DD6]
(No symbol) [0x005931F6]
(No symbol) [0x0059439D]
GetHandleVerifier [0x009F0716+3229462]
GetHandleVerifier [0x00A384C8+3523784]
GetHandleVerifier [0x00A3214C+3498316]
GetHandleVerifier [0x00771680+611968]
(No symbol) [0x0067CCCC]
(No symbol) [0x00678DF8]
(No symbol) [0x00678F1D]
(No symbol) [0x0066B2C7]
BaseThreadInitThunk [0x76AD7BA9+25]
RtlInitializeExceptionChain [0x7731BD2B+107]
RtlClearBits [0x7731BCAF+191]

Traceback (most recent call last):
File "C:\Users\tomma\Downloads\MS-Rewards-Farmer-3.1-stable\main.py", line 32, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tomma\Downloads\MS-Rewards-Farmer-3.1-stable\main.py", line 183, in executeBot
DailySet(desktopBrowser).completeDailySet()
File "C:\Users\tomma\Downloads\MS-Rewards-Farmer-3.1-stable\src\dailySet.py", line 18, in completeDailySet
self.browser.utils.goHome()
File "C:\Users\tomma\Downloads\MS-Rewards-Farmer-3.1-stable\src\utils.py", line 112, in goHome
self.webdriver.get(BASE_URL)
File "C:\Users\tomma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver_init_.py", line 629, in get_wrapped
return orig_get(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\tomma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\undetected_chromedriver_init_.py", line 665, in get
return super().get(url)
^^^^^^^^^^^^^^^^
File "C:\Users\tomma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 356, in get
self.execute(Command.GET, {"url": url})
File "C:\Users\tomma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "C:\Users\tomma\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 299.410
(Session info: chrome=119.0.6045.160)
Stacktrace:
GetHandleVerifier [0x006E72A3+45731]
(No symbol) [0x00672D51]
(No symbol) [0x0056880D]
(No symbol) [0x0055ABF2]
(No symbol) [0x0055AA9A]
(No symbol) [0x005597F2]
(No symbol) [0x00559FFA]
(No symbol) [0x00563882]
(No symbol) [0x00570BAA]
(No symbol) [0x00573BA6]
(No symbol) [0x0055A52C]
(No symbol) [0x00570AC0]
(No symbol) [0x005CB8C3]
(No symbol) [0x005B7DD6]
(No symbol) [0x005931F6]
(No symbol) [0x0059439D]
GetHandleVerifier [0x009F0716+3229462]
GetHandleVerifier [0x00A384C8+3523784]
GetHandleVerifier [0x00A3214C+3498316]
GetHandleVerifier [0x00771680+611968]
(No symbol) [0x0067CCCC]
(No symbol) [0x00678DF8]
(No symbol) [0x00678F1D]
(No symbol) [0x0066B2C7]
BaseThreadInitThunk [0x76AD7BA9+25]
RtlInitializeExceptionChain [0x7731BD2B+107]
RtlClearBits [0x7731BCAF+191]

Expected Behavior

he should complete the daily set

Actual Behavior

he doesn't complete the daily set

Your Environment

  • Version used:3.1
  • Environment name and version (e.g. Chrome ver):119.0.6045.160
  • Operating System and version:Windows 11

[BUG] Possible punchcard and "this or that " quiz fix?

Description

Since day 1 ,the punchcard has never worked does it for anyone else?
Also it comes unstuck on this or that quiz in the daily sets
Any chance these can be fixed in future releases
Thankyou for your continued support

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome ver):
  • Operating System and version:

[BUG] Issue after Chrome update - unknown error: cannot connect to Chrome at 127.0.0.1 from chrome not reachable

Bot crashes when doing the mobile search

Description

The bot crashes when starting the mobiel browser. I think it is related with Chrome updates, as it has happened me twice, both after a Chrome update. The last time I solved it by removing the sessions folders, but after doing that I have to log in again manually (I have 2FA). Thus, I'm wondering whether it is possible to solve it without removing the full sessions folder (and thus losing my login cookies)

Expected Behavior

Doing the mobile search

Actual Behavior

2023-12-12 17:12:15,359 [ERROR] WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1
from chrome not reachable
Stacktrace:
        GetHandleVerifier [0x00616E73+174291]
        (No symbol) [0x00540AC1]
        (No symbol) [0x00256E8A]
        (No symbol) [0x0024C8A3]
        (No symbol) [0x0027DE94]
        (No symbol) [0x00277B12]
        (No symbol) [0x00277927]
        (No symbol) [0x002AE259]
        (No symbol) [0x002ADBBA]
        (No symbol) [0x002A6DA6]
        (No symbol) [0x00281034]
        (No symbol) [0x00281F8D]
        GetHandleVerifier [0x006B49CC+820268]
        sqlite3_dbdata_init [0x00774EBE+652494]
        sqlite3_dbdata_init [0x007748D9+650985]
        sqlite3_dbdata_init [0x0076962C+605244]
        sqlite3_dbdata_init [0x0077586B+654971]
        (No symbol) [0x0054FEBC]
        (No symbol) [0x00548428]
        (No symbol) [0x0054854D]
        (No symbol) [0x00535858]
        BaseThreadInitThunk [0x770700F9+25]
        RtlGetAppContainerNamedObjectPath [0x772C7BBE+286]
        RtlGetAppContainerNamedObjectPath [0x772C7B8E+238]

Traceback (most recent call last):
  File "Path\Microsoft-Rewards-Farmer-master\main.py", line 24, in main
    executeBot(currentAccount, notifier, args)
  File "Path\Microsoft-Rewards-Farmer-master\main.py", line 147, in executeBot
    with Browser(
  File "Path\Microsoft-Rewards-Farmer-master\src\browser.py", line 41, in __init__
    self.webdriver = self.browserSetup()
  File "Path\Microsoft-Rewards-Farmer-master\src\browser.py", line 77, in browserSetup
    driver = webdriver.Chrome(
  File "Environments\RewardsFarmer\lib\site-packages\seleniumwire\undetected_chromedriver\webdriver.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "Environments\RewardsFarmer\lib\site-packages\undetected_chromedriver\__init__.py", line 466, in __init__
    super(Chrome, self).__init__(
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__
    super().__init__(
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 56, in __init__
    super().__init__(
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 208, in __init__
    self.start_session(capabilities)
  File "Environments\RewardsFarmer\lib\site-packages\undetected_chromedriver\__init__.py", line 724, in start_session
    super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 292, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "Environments\RewardsFarmer\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1
from chrome not reachable
Stacktrace:
	GetHandleVerifier [0x00616E73+174291]
	(No symbol) [0x00540AC1]
	(No symbol) [0x00256E8A]
	(No symbol) [0x0024C8A3]
	(No symbol) [0x0027DE94]
	(No symbol) [0x00277B12]
	(No symbol) [0x00277927]
	(No symbol) [0x002AE259]
	(No symbol) [0x002ADBBA]
	(No symbol) [0x002A6DA6]
	(No symbol) [0x00281034]
	(No symbol) [0x00281F8D]
	GetHandleVerifier [0x006B49CC+820268]
	sqlite3_dbdata_init [0x00774EBE+652494]
	sqlite3_dbdata_init [0x007748D9+650985]
	sqlite3_dbdata_init [0x0076962C+605244]
	sqlite3_dbdata_init [0x0077586B+654971]
	(No symbol) [0x0054FEBC]
	(No symbol) [0x00548428]
	(No symbol) [0x0054854D]
	(No symbol) [0x00535858]
	BaseThreadInitThunk [0x770700F9+25]
	RtlGetAppContainerNamedObjectPath [0x772C7BBE+286]
	RtlGetAppContainerNamedObjectPath [0x772C7B8E+238]

Possible Fix

Removing the sessions folder

Steps to Reproduce

After a Chrome update

Your Environment

  • Chrome 120 (also happened with 119)
  • Windows 10
  • I'm using the bot with only one account

EDIT

Previously, it only happened with the mobile search, now it also occurs for the desktop search (it is the same error)

Geo flag unnecessary

Thanks for the further development of the bot!
I'm tinkering around to get it running stable in a Docker Enviroment and it suddenly crashed today after the "more promotion" I was digging deeper into the code and found out that the geo location flag isn't used as I can see.
e.g.

self.localeLang, self.localeGeo = self.getCCodeLang(args.lang, args.geo)
...
...
options.add_argument(f"--lang={self.localeLang}")

[BUG] Cannot connect to chrome

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Note: Im new to github and dont know much about python or debugging.

After searching up some tutorials on google, I added the main.py to the task scheduler to run this farmer overnight. The program worked correctly so I went to bed hoping that this would run it. The next morning I realized that the points I had on ms rewards never changed, so I ran the main.py through my basic task on task scheduler. It opened up cmd prompt and ran the code like normal until an error occured before logging in. I tried clearing my session folder like the description of this project said but the files are open somewhere else and I dont know where. Then I ran the code manually without task scheduler and the same error occurred. It worked before I just dont know whats wrong, any help? I also checked other closed issues that were the same as mine but I don't understand it.

Copy and paste your error

โ†[38;5;226m2024-04-20 13:30:37,341 [WARNING] Error occurred: Message: unknown error: cannot connect to chrome at 127.0.0.1:(dont know if this is private or not)

Screenshots

errormsrewards

Value of dashboard variable

https://gist.github.com/Contamiply/6072abbdcf70936df4bb2366a0ff4bbf

[BUG] timeout between desktop and mobile (USUALLY)

getting error Timeout error usually between desktop searching and mobile searching although this has happened at the end of searching (desktop/mobile) and during daily set

*please not i have replaced my username with ****** below

Description

Expected Behavior

Actual Behavior

โ†[38;5;196m2023-12-02 16:27:14,288 [ERROR] TimeoutException: Message: timeout: Timed out receiving message from renderer: 298.444
(Session info: chrome=119.0.6045.200)
Stacktrace:
GetHandleVerifier [0x007A72A3+45731]
(No symbol) [0x00732D51]
(No symbol) [0x0062880D]
(No symbol) [0x0061ABF2]
(No symbol) [0x0061AA9A]
(No symbol) [0x006197F2]
(No symbol) [0x00619FFA]
(No symbol) [0x00623882]
(No symbol) [0x00630BAA]
(No symbol) [0x00633BA6]
(No symbol) [0x0061A52C]
(No symbol) [0x00630AC0]
(No symbol) [0x0068B8C3]
(No symbol) [0x00677DD6]
(No symbol) [0x006531F6]
(No symbol) [0x0065439D]
GetHandleVerifier [0x00AB0716+3229462]
GetHandleVerifier [0x00AF84C8+3523784]
GetHandleVerifier [0x00AF214C+3498316]
GetHandleVerifier [0x00831680+611968]
(No symbol) [0x0073CCCC]
(No symbol) [0x00738DF8]
(No symbol) [0x00738F1D]
(No symbol) [0x0072B2C7]
BaseThreadInitThunk [0x75CE7BA9+25]
RtlInitializeExceptionChain [0x7713BD2B+107]
RtlClearBits [0x7713BCAF+191]
โ†[0m
Traceback (most recent call last):
File "F:\Klept0_MS-Rewards-Farmer-master\main.py", line 42, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Klept0_MS-Rewards-Farmer-master\main.py", line 241, in executeBot
desktopBrowser.utils.goHome()
File "F:\Klept0_MS-Rewards-Farmer-master\src\utils.py", line 112, in goHome
self.webdriver.get(BASE_URL)
File "C:\Users***\AppData\Roaming\Python\Python311\site-packages\undetected_chromedriver_init_.py", line 629, in get_wrapped
return orig_get(*args, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users*
\AppData\Roaming\Python\Python311\site-packages\undetected_chromedriver_init_.py", line 665, in get
return super().get(url)
^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 354, in get
self.execute(Command.GET, {"url": url})
File "C:\Program Files\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute
self.error_handler.check_response(response)
File "C:\Program Files\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 298.444
(Session info: chrome=119.0.6045.200)
Stacktrace:
GetHandleVerifier [0x007A72A3+45731]
(No symbol) [0x00732D51]
(No symbol) [0x0062880D]
(No symbol) [0x0061ABF2]
(No symbol) [0x0061AA9A]
(No symbol) [0x006197F2]
(No symbol) [0x00619FFA]
(No symbol) [0x00623882]
(No symbol) [0x00630BAA]
(No symbol) [0x00633BA6]
(No symbol) [0x0061A52C]
(No symbol) [0x00630AC0]
(No symbol) [0x0068B8C3]
(No symbol) [0x00677DD6]
(No symbol) [0x006531F6]
(No symbol) [0x0065439D]
GetHandleVerifier [0x00AB0716+3229462]
GetHandleVerifier [0x00AF84C8+3523784]
GetHandleVerifier [0x00AF214C+3498316]
GetHandleVerifier [0x00831680+611968]
(No symbol) [0x0073CCCC]
(No symbol) [0x00738DF8]
(No symbol) [0x00738F1D]
(No symbol) [0x0072B2C7]
BaseThreadInitThunk [0x75CE7BA9+25]
RtlInitializeExceptionChain [0x7713BD2B+107]
RtlClearBits [0x7713BCAF+191]

Possible Fix

Steps to Reproduce

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome ver):
  • Operating System and version:

[Enhancement] Get last version (use autoupdate_main.py from parent git

Allow to get the most enhanced version, may be prone to bug so maybe add a disclaimer.
Possible fix works and have been used for a few weeks now, current usage (main.py) is unchanged.

Description

What I likes about charles version is the autoupdate script, so I adapted it to klept0 git

Possible Fix

Save as autoupdate_main.py, change any call of main.py in your task scheduler to call it without changing the flags

import os

import sys
from io import BytesIO
from zipfile import ZipFile

import requests


def update(version: str):
    url = "https://github.com/klept0/MS-Rewards-Farmer/archive/refs/heads/master.zip"
    folderName = "MS-Rewards-Farmer-master"
    with open(".gitignore", "r") as f:
        exclusions = f.read().splitlines()
        exclusions = [e for e in exclusions if e != "" and not e.startswith("#")] + [
            ".gitignore",
            ".git",
            "autoupdate_main.py",
        ]
    print("Removing old files...")
    for root, dirs, files in os.walk(".", topdown=False):
        for name in files:
            path = os.path.join(root, name)
            relativePath = path[2:]
            if not relativePath.startswith(tuple(exclusions)):
                os.remove(path)
    print("Downloading...")
    r = requests.get(url)
    data = BytesIO(r.content)
    print("Extracting...")
    with ZipFile(data, "r") as zipObj:
        files = [
            f
            for f in zipObj.namelist()
            if f.startswith(folderName) and not f.endswith("/")
        ]
        for file in files:
            newName = file.replace(f"{folderName}/", "")
            dirName = os.path.dirname(newName)
            if "/" in newName and not os.path.exists(dirName):
                print(f"Creating folder {dirName}...")
                os.makedirs(dirName)
            with zipObj.open(file) as src, open(newName, "wb") as dst:
                dst.write(src.read())
    with open("version.txt", "w") as f:
        f.write(version)
    print("Done !")


def getCurrentVersion():
    if os.path.exists("version.txt"):
        with open("version.txt", "r") as f:
            version = f.read()
        return version
    return None


def getLatestVersion():
    r = requests.get(
        "https://api.github.com/repos/klept0/MS-Rewards-Farmer/commits/master"
    )
    return r.json()["sha"]


if __name__ == "__main__":
    currentVersion = getCurrentVersion()
    latestVersion = getLatestVersion()
    if currentVersion != latestVersion:
        print("New version available !")
        update(latestVersion)

    print("Starting...")

    import main

    main.sys.argv[1:] = sys.argv[1:]
    main.main()

[BUG] very slow bing searches

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Just come from a 15 minute pause between 4 searches
Where I added this 1 line code @ line 63 ,in searches.py,code:

if i % 4 == 0: time.sleep(900)

The 4 searches where taking like 1-2 mins
I removed the code as ivโ€™ve learnt the 15minute pause has been taken from my account
Problem is itโ€™s taking from 3 to 10 minutes per search now
Is this normal?
Tried with headless off just seems to be a pause before text is inputted
Tried fresh install ,does the same
Hence why I said is this normal?as the above code might of been bypassing something
If I can speed it up what part of the code do you adjust in the searches.py

Copy and paste your error

Na

Screenshots

Na

Value of dashboard variable

Na

[BUG] [ERROR] WebDriverException: Message: unknown error: cannot connect to chrome

Actual Behavior

2023-12-02 12:40:13,498 [INFO] xxx
2023-12-02 12:40:16,412 [INFO] Using default request storage
2023-12-02 12:40:16,471 [INFO] Created proxy listening on 127.0.0.1:39101
2023-12-02 12:40:16,472 [INFO] Using undetected_chromedriver
2023-12-02 12:40:20,859 [INFO] patching driver executable /home/xbun/.local/share/undetected_chromedriver/undetected_chromedriver
2023-12-02 12:41:21,595 [ERROR] WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:32795
from chrome not reachable
Stacktrace:
#0 0x562c449865e3
#1 0x562c44648f0d
#2 0x562c4463350a
#3 0x562c44684cfd
#4 0x562c4467babf
#5 0x562c446c747f
#6 0x562c446bdcc3
#7 0x562c446890e4
#8 0x562c4468a0ae
#9 0x562c4494cce1
#10 0x562c44950b7e
#11 0x562c4493a4b5
#12 0x562c449517d6
#13 0x562c4491ddbf
#14 0x562c44974748
#15 0x562c44974917
#16 0x562c44985773
#17 0x7f4e3a694ac3

Traceback (most recent call last):
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/main.py", line 38, in main
earned_points = executeBot(currentAccount, notifier, args)
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/main.py", line 201, in executeBot
with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/src/browser.py", line 58, in init
self.webdriver = self.browserSetup()
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/src/browser.py", line 97, in browserSetup
driver = webdriver.Chrome(
File "/home/xbun/.local/lib/python3.10/site-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in init
super().init(*args, **kwargs)
File "/home/xbun/.local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 466, in init
super(Chrome, self).init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 56, in init
super().init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in init
self.start_session(capabilities)
File "/home/xbun/.local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 724, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:32795
from chrome not reachable
Stacktrace:
#0 0x562c449865e3
#1 0x562c44648f0d
#2 0x562c4463350a
#3 0x562c44684cfd
#4 0x562c4467babf
#5 0x562c446c747f
#6 0x562c446bdcc3
#7 0x562c446890e4
#8 0x562c4468a0ae
#9 0x562c4494cce1
#10 0x562c44950b7e
#11 0x562c4493a4b5
#12 0x562c449517d6
#13 0x562c4491ddbf
#14 0x562c44974748
#15 0x562c44974917
#16 0x562c44985773
#17 0x7f4e3a694ac3

2023-12-02 12:41:21,613 [INFO] xxx
2023-12-02 12:41:23,792 [INFO] Using default request storage
2023-12-02 12:41:23,817 [INFO] Created proxy listening on 127.0.0.1:38067
2023-12-02 12:41:23,817 [INFO] Using undetected_chromedriver
2023-12-02 12:41:26,415 [INFO] patching driver executable /home/xbun/.local/share/undetected_chromedriver/undetected_chromedriver
2023-12-02 12:42:27,086 [ERROR] WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:54345
from chrome not reachable
Stacktrace:
#0 0x5556cb4565e3
#1 0x5556cb118f0d
#2 0x5556cb10350a
#3 0x5556cb154cfd
#4 0x5556cb14babf
#5 0x5556cb19747f
#6 0x5556cb18dcc3
#7 0x5556cb1590e4
#8 0x5556cb15a0ae
#9 0x5556cb41cce1
#10 0x5556cb420b7e
#11 0x5556cb40a4b5
#12 0x5556cb4217d6
#13 0x5556cb3eddbf
#14 0x5556cb444748
#15 0x5556cb444917
#16 0x5556cb455773
#17 0x7f35ba094ac3

Traceback (most recent call last):
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/main.py", line 38, in main
earned_points = executeBot(currentAccount, notifier, args)
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/main.py", line 201, in executeBot
with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/src/browser.py", line 58, in init
self.webdriver = self.browserSetup()
File "/home/xbun/Downloads/MS-Rewards-Farmer-master/src/browser.py", line 97, in browserSetup
driver = webdriver.Chrome(
File "/home/xbun/.local/lib/python3.10/site-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in init
super().init(*args, **kwargs)
File "/home/xbun/.local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 466, in init
super(Chrome, self).init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/chrome/webdriver.py", line 45, in init
super().init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/chromium/webdriver.py", line 56, in init
super().init(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 208, in init
self.start_session(capabilities)
File "/home/xbun/.local/lib/python3.10/site-packages/undetected_chromedriver/init.py", line 724, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 292, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/home/xbun/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:54345
from chrome not reachable
Stacktrace:
#0 0x5556cb4565e3
#1 0x5556cb118f0d
#2 0x5556cb10350a
#3 0x5556cb154cfd
#4 0x5556cb14babf
#5 0x5556cb19747f
#6 0x5556cb18dcc3
#7 0x5556cb1590e4
#8 0x5556cb15a0ae
#9 0x5556cb41cce1
#10 0x5556cb420b7e
#11 0x5556cb40a4b5
#12 0x5556cb4217d6
#13 0x5556cb3eddbf
#14 0x5556cb444748
#15 0x5556cb444917
#16 0x5556cb455773
#17 0x7f35ba094ac3

  • Operating System and version: Xubuntu on a virtual machine

[BUG] Versus Game is not working as expected

Versus Game is not working as expected

Description

Since addition of Versus Game I'm having issue, while it does complete it it will return an error.
It may also coded badly enough to trigger something on server side

Expected Behavior

Open the url, check if the games have been played, if not then play the game and go to the next section, otherwise go to the next section

Actual Behavior

Open the Url, Get a flyout url , Get an iframe url, open iframe url, loop 3 times using the same button, go to an error "JavascriptException: Message: javascript error: dashboard is not defined"

Possible Fix

Temporary fix :
Remove/Comment Line 236

Full fix :
Stop using the iframe, Put a random on the buttonclick, correct the error - I'll try to do this myself in a few days

Steps to Reproduce

Run the script

Context

While those points may be a great bonus, the behaviour seems too risky.

Your Environment

  • Version used: Latest
  • Environment name and version (e.g. Chrome ver): Chrome 120.0.6099.130
  • Operating System and version: W11

Issue with Search Bing Mobile

After finish running the script when i check the account the mobile search points is missing like 40 point, is there any fix for this like checking the point again after finish search bing or make the search count to 25 or 30 ? as for now i running the script again to check the missing point.

In the script it says all 20 search has been done but when check manually it missing some point.

[ERROR] JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Dear,
After making the farmer working with my MS account it stopped suddenly with the error pasted in the error field. I cannot make it work again. I did no changes on the system except that I have tried to use different account.json for another account as I wanted to avoid using my primary MS account used for a lot more than just collecting rewards points. Neither of the accounts work now.
Can some help and point to the right direction?

Copy and paste your error

2024-03-04 20:06:55,463 [INFO] [BING] Starting Desktop Edge Bing searches...
2024-03-04 20:06:55,860 [ERROR] JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/home/roboadm/MS-Rewards-Farmer/main.py", line 47, in main
earned_points = executeBot(currentAccount, notifier, args)
File "/home/roboadm/MS-Rewards-Farmer/main.py", line 249, in executeBot
accountPointsCounter = Searches(desktopBrowser).bingSearches(
File "/home/roboadm/MS-Rewards-Farmer/src/searches.py", line 61, in bingSearches
search_terms = self.getGoogleTrends(numberOfSearches)
File "/home/roboadm/MS-Rewards-Farmer/src/searches.py", line 31, in getGoogleTrends
trends = json.loads(r.text[6:])
File "/usr/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2024-03-04 20:06:55,874 [INFO] [POINTS] Data saved for the next day.

Screenshots

Screenshot 2024-03-04 201001

Value of dashboard variable

https://gist.github.com/RobertMochnacky/fc18120fb60397a043f03abba27c2045#file-gistfile1-txt

[BUG] Are proxies being blocked?

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

cant seem to login via a proxy from the same country
never had these issues before,is microsoft blocking proxy connections to paid proxy services?

Copy and paste your error

na

Screenshots

na

Value of dashboard variable

na

Microsoft Rewards Extension Request

Is it possible to go to the chrome web store and install the extension from there through the script? Or load an crx file of the extension? I believe doing so unlocks the prediction game, and it is a extra 15 points I'm pretty sure

[Feature Request] Mobile news points

On the Bing app, you're able to earn up to 30 points a day for reading news article, 3 points per. Could this be added to the script? I don't know if a simple useragent change will register it as the app reading the article.

Punch Card not working

Hello,

there a issue with punch card script, it only open the page but didnt click any link on the punch card. so we didnt get any point from punch card.

in the script it only says this
[2023-11-14 00:12:08,477] [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
[2023-11-14 00:14:04,382] [INFO] [PUNCH CARDS] Completed the Punch Cards successfully !

but when i check manually it didnt click any punch card.

Thank you

[BUG]stuck in writing password

2023-12-09 10:41:29,427 [INFO] Using default request storage
2023-12-09 10:41:29,612 [INFO] Created proxy listening on 127.0.0.1:55134
2023-12-09 10:41:29,613 [INFO] Using undetected_chromedriver
2023-12-09 10:41:32,288 [INFO] patching driver executable C:\Users\tomma\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe
2023-12-09 10:41:33,324 [INFO] Screen size: 1762x1461
2023-12-09 10:41:33,325 [INFO] Device size: 1707x1310
2023-12-09 10:41:33,529 [INFO] [LOGIN] Logging-in...
2023-12-09 10:41:39,439 [INFO] [LOGIN] Entering email...
2023-12-09 10:41:40,698 [INFO] [LOGIN] Writing password...

Description

the bot get stuck in writing password but it's already writed the password

Expected Behavior

the bot should see that the password has been written and should finish this step

Actual Behavior

the bot can't see that password writing has been completed

Possible Fix

I've seen a solution where it goes by @idieli " 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."
but I can't find what's talking to line 73 and 78

REDEEM

Description

How can i redeem without in progress? When i go to redeem the gc say in progress and before i recieved a ban In addition i can't talk in telegram

[BUG] Stopped working today

G:\scripts\MS-Rewards-Farmer>python main.py
test 9.487
Traceback (most recent call last):
  File "G:\scripts\MS-Rewards-Farmer\main.py", line 310, in <module>
    main()
  File "G:\scripts\MS-Rewards-Farmer\main.py", line 24, in main
    args = argumentParser()
  File "G:\scripts\MS-Rewards-Farmer\main.py", line 148, in argumentParser
    parser.add_argument(
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1441, in add_argument
    return self._add_action(action)
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1807, in _add_action
    self._optionals._add_action(action)
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1643, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1455, in _add_action
    self._check_conflict(action)
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1592, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "C:\Users\RIDAI\AppData\Local\Programs\Python\Python310\lib\argparse.py", line 1601, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument -p/--pushover: conflicting option string: -p

Known issue? Updated python requirements and pulled latest.

[BUG] script hangs and WebDriverException when running without -v flag

When running in headless mode (i.e. not using -v flag), the script often hangs when trying to complete daily set or other tasks. It stays stuck until around 10 minutes when an error is thrown: [ERROR] WebDriverException: Message: disconnected: not connected to DevTools (failed to check if window was closed: disconnected: not connected to DevTools)

Possible Fix

A similar problem happened once using the -v flag, and the webpage would not load because of ERR_HTTP2_PROTOCOL_ERROR. Not sure if that had anything to do with this bug though.

Your Environment

  • Version used: latest
  • Environment name and version (e.g. Chrome ver): Chrome Version 119.0.6045.199 (Official Build) (arm64)
  • Operating System and version: macOS Sonoma 14.1.1

[BUG] cannot connect to chrome at 127.0.0.1:42925 from chrome not reachable and endless writting password

cannot connect to chrome at 127.0.0.1:42925 from chrome not reachable and endless writting password

Description

when i don't have sessions folder the bot get stuck in writting password and when i relaunch the bot he say "cannot connect to chrome at 127.0.0.1:42925 from chrome not reachable

Expected Behavior

after relaunch the bot i expected it work normaly and don't have chrome problem

Actual Behavior

it get stuck after the session folder appears

  • Version used:
    *Version 120.0.6099.199 (e.g. Chrome ver):
  • Operating System and version: Window 11

Chrome not reachable (on second account)

Hello,

I'm experiencing the same or similar issue as the main branch release that appears unresolved.

After successfully completing searches, etc. with the first account, the second account errors with the message unknown error: cannot connect to chrome at.... A reboot of the system doesn't change, neither does re-running the script. On re-running the script, it even starts with this second account and still results in an error.

Console output:

2023-10-20 09:51:41,942 [INFO] patching driver executable /root/.local/share/undetected_chromedriver/undetected_chromedriver
2023-10-20 09:52:42,540 [ERROR] WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:42925
from chrome not reachable
Stacktrace:
#0 0x55f408d63fb3 <unknown>
#1 0x55f408a372f6 <unknown>
#2 0x55f408a22ffa <unknown>
#3 0x55f408a6ea3c <unknown>
#4 0x55f408a662a9 <unknown>
#5 0x55f408aa9ac6 <unknown>
#6 0x55f408aa0713 <unknown>
#7 0x55f408a7318b <unknown>
#8 0x55f408a73f7e <unknown>
#9 0x55f408d298d8 <unknown>
#10 0x55f408d2d800 <unknown>
#11 0x55f408d37cfc <unknown>
#12 0x55f408d2e418 <unknown>
#13 0x55f408cfb42f <unknown>
#14 0x55f408d524e8 <unknown>
#15 0x55f408d526b4 <unknown>
#16 0x55f408d63143 <unknown>
#17 0x7f36bd094ac3 <unknown>

Traceback (most recent call last):
  File "/root/MS-Rewards-Farmer/main.py", line 31, in main
    earned_points = executeBot(currentAccount, notifier, args)
  File "/root/MS-Rewards-Farmer/main.py", line 169, in executeBot
    with Browser(mobile=False, account=currentAccount, args=args) as desktopBrowser:
  File "/root/MS-Rewards-Farmer/src/browser.py", line 41, in __init__
    self.webdriver = self.browserSetup()
  File "/root/MS-Rewards-Farmer/src/browser.py", line 78, in browserSetup
    driver = webdriver.Chrome(
  File "/usr/local/lib/python3.10/dist-packages/seleniumwire/undetected_chromedriver/webdriver.py", line 61, in __init__
    super().__init__(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/undetected_chromedriver/__init__.py", line 466, in __init__
    super(Chrome, self).__init__(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chrome/webdriver.py", line 45, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/chromium/webdriver.py", line 56, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 205, in __init__
    self.start_session(capabilities)
  File "/usr/local/lib/python3.10/dist-packages/undetected_chromedriver/__init__.py", line 724, in start_session
    super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 289, in start_session
    response = self.execute(Command.NEW_SESSION, caps)["value"]
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 344, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:42925
from chrome not reachable
Stacktrace:
#0 0x55f408d63fb3 <unknown>
#1 0x55f408a372f6 <unknown>
#2 0x55f408a22ffa <unknown>
#3 0x55f408a6ea3c <unknown>
#4 0x55f408a662a9 <unknown>
#5 0x55f408aa9ac6 <unknown>
#6 0x55f408aa0713 <unknown>
#7 0x55f408a7318b <unknown>
#8 0x55f408a73f7e <unknown>
#9 0x55f408d298d8 <unknown>
#10 0x55f408d2d800 <unknown>
#11 0x55f408d37cfc <unknown>
#12 0x55f408d2e418 <unknown>
#13 0x55f408cfb42f <unknown>
#14 0x55f408d524e8 <unknown>
#15 0x55f408d526b4 <unknown>
#16 0x55f408d63143 <unknown>
#17 0x7f36bd094ac3 <unknown>

[BUG] dashboard is not defined

dashboard is not defined

Description

after the versus game failed i get this error " dashboard is not defined"

Expected Behavior

continue working

Actual Behavior

2024-01-05 14:40:45,966 [INFO] Using default request storage
2024-01-05 14:40:45,975 [INFO] Created proxy listening on 127.0.0.1:51798
2024-01-05 14:40:45,975 [INFO] Using undetected_chromedriver
2024-01-05 14:40:47,012 [INFO] patching driver executable C:\Users\Utilisateur\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe
2024-01-05 14:40:48,121 [INFO] Screen size: 1083x949
2024-01-05 14:40:48,122 [INFO] Device size: 1028x798
2024-01-05 14:40:48,156 [INFO] [LOGIN] Logging-in...
2024-01-05 14:40:57,937 [INFO] [LOGIN] Logged-in !
2024-01-05 14:40:59,340 [INFO] [LOGIN] Ensuring you are logged into Bing...
2024-01-05 14:41:04,273 [INFO] [LOGIN] Logged-in successfully !
2024-01-05 14:41:04,273 [INFO] [POINTS] You have 20โ€ฏ950,00 points on your account
2024-01-05 14:41:04,275 [INFO] [DAILY SET] Trying to complete the Daily Set...
2024-01-05 14:41:05,739 [INFO] [DAILY SET] Completed the Daily Set successfully !
2024-01-05 14:41:05,740 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2024-01-05 14:41:05,800 [INFO] [PUNCH CARDS] Completed the Punch Cards successfully !
2024-01-05 14:41:15,547 [INFO] [MORE PROMOS] Trying to complete More Promotions...
2024-01-05 14:41:16,898 [INFO] [MORE PROMOS] Completed More Promotions successfully !
2024-01-05 14:42:04,466 [INFO] [VERSUS GAME] Versus Game Failed!
2024-01-05 14:42:05,094 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined
(Session info: chrome=120.0.6099.200)
Stacktrace:
GetHandleVerifier [0x00D06EE3+174339]
(No symbol) [0x00C30A51]
(No symbol) [0x00946FF6]
(No symbol) [0x0094AEAC]
(No symbol) [0x0094C7C1]
(No symbol) [0x009AACD8]
(No symbol) [0x0099700C]
(No symbol) [0x009AA104]
(No symbol) [0x00996DA6]
(No symbol) [0x00971034]
(No symbol) [0x00971F8D]
GetHandleVerifier [0x00DA4B1C+820540]
sqlite3_dbdata_init [0x00E653EE+653550]
sqlite3_dbdata_init [0x00E64E09+652041]
sqlite3_dbdata_init [0x00E597CC+605388]
sqlite3_dbdata_init [0x00E65D9B+656027]
(No symbol) [0x00C3FE6C]
(No symbol) [0x00C383B8]
(No symbol) [0x00C384DD]
(No symbol) [0x00C25818]
BaseThreadInitThunk [0x75B27BA9+25]
RtlInitializeExceptionChain [0x7708BD2B+107]
RtlClearBits [0x7708BCAF+191]
Traceback (most recent call last):
File "C:\Users\Utilisateur\Downloads\MS-Rewards-Farmer-master\main.py", line 47, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Utilisateur\Downloads\MS-Rewards-Farmer-master\main.py", line 240, in executeBot
) = desktopBrowser.utils.getRemainingSearches()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Utilisateur\Downloads\MS-Rewards-Farmer-master\src\utils.py", line 255, in getRemainingSearches
dashboard = self.getDashboardData()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Utilisateur\Downloads\MS-Rewards-Farmer-master\src\utils.py", line 154, in getDashboardData
return self.webdriver.execute_script("return dashboard")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Utilisateur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\remote\webdriver.py", line 408, in execute_script
return self.execute(command, {"script": script, "args": converted_args})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Utilisateur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\remote\webdriver.py", line 348, in execute
self.error_handler.check_response(response)
File "C:\Users\Utilisateur\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\selenium\webdriver\remote\errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: dashboard is not defined
(Session info: chrome=120.0.6099.200)
Stacktrace:
GetHandleVerifier [0x00D06EE3+174339]
(No symbol) [0x00C30A51]
(No symbol) [0x00946FF6]
(No symbol) [0x0094AEAC]
(No symbol) [0x0094C7C1]
(No symbol) [0x009AACD8]
(No symbol) [0x0099700C]
(No symbol) [0x009AA104]
(No symbol) [0x00996DA6]
(No symbol) [0x00971034]
(No symbol) [0x00971F8D]
GetHandleVerifier [0x00DA4B1C+820540]
sqlite3_dbdata_init [0x00E653EE+653550]
sqlite3_dbdata_init [0x00E64E09+652041]
sqlite3_dbdata_init [0x00E597CC+605388]
sqlite3_dbdata_init [0x00E65D9B+656027]
(No symbol) [0x00C3FE6C]
(No symbol) [0x00C383B8]
(No symbol) [0x00C384DD]
(No symbol) [0x00C25818]
BaseThreadInitThunk [0x75B27BA9+25]
RtlInitializeExceptionChain [0x7708BD2B+107]
RtlClearBits [0x7708BCAF+191]

2024-01-05 14:42:05,099 [INFO] [POINTS] Data saved for the next day.

Your Environment

  • chrome 120.0.6099.200
  • Window 11
  • i use only one account

[BUG] Code Crashing my pc

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

Note: I am newer to github and don't much about this subject, please go into extra detail to make me understand or smth. I started running this script with no issues a few days ago, so I decided to set it up with task scheduler. After figuring out how to do so I got it to work successfully. A day or two later I realized my pc was frozen when I got back to it in the morning(since it is scheduled to run at 2am). I ran the script myself through task scheduler and when it finished getting me points it just straight up crashed my pc, with a 90% chance I have to manually shut my pc off and a 10% chance of the pc fixing itself over a course of atleast one hour(sometimes it can take 5 hours). There are no errors in the log that hint a loop or something so I don't know whats wrong.

Here are the list of things I tried

  • Deleting then reinstalling the repo
  • Delete then reinstall some of the requirements
  • Find other people with the same problem
  • Deleting sessions folder

Here is some other info:

  • Windows 10 pro(I think its pro)
  • Running on cmd prompt - Uh thats it

Copy and paste your error

024-04-26 23:10:23,101 [WARNING] Error occurred: Message: javascript error: dashboard is not defined
(Session info: chrome=124.0.6367.78)
Stacktrace:
GetHandleVerifier [0x00C0C113+48259]
(No symbol) [0x00B9CA41]
(No symbol) [0x00A90A17]
(No symbol) [0x00A95B58]
(No symbol) [0x00A978CA]
(No symbol) [0x00B0A505]
(No symbol) [0x00AF0D9C]
(No symbol) [0x00B09B9C]
(No symbol) [0x00AF0B36]
(No symbol) [0x00AC570D]
(No symbol) [0x00AC62CD]
GetHandleVerifier [0x00EC6533+2908323]
GetHandleVerifier [0x00F03B4B+3159739]
GetHandleVerifier [0x00CA505B+674763]
GetHandleVerifier [0x00CAB21C+699788]
(No symbol) [0x00BA6244]
(No symbol) [0x00BA2298]
(No symbol) [0x00BA242C]
(No symbol) [0x00B94BB0]
BaseThreadInitThunk [0x75DDFCC9+25]
RtlGetAppContainerNamedObjectPath [0x77447C5E+286]
RtlGetAppContainerNamedObjectPath [0x77447C2E+238]
. Retrying... | [email protected]
2024-04-26 23:10:33,107 [INFO] [email protected]
2024-04-26 23:10:36,852 [INFO] patching driver executable C:\Users\Luke\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe
2024-04-26 23:10:41,634 [INFO] Screen size: 2278x1364
2024-04-26 23:10:41,649 [INFO] Device size: 2223x1213
2024-04-26 23:10:53,517 [INFO] [LOGIN] Logging-in...
2024-04-26 23:11:33,183 [INFO] [LOGIN] Logged-in !
2024-04-26 23:11:49,125 [INFO] [LOGIN] Ensuring you are logged into Bing...
2024-04-26 23:12:05,432 [INFO] [LOGIN] Logged-in successfully !
2024-04-26 23:12:05,454 [INFO] [POINTS] You have 2,082.00 points on your account
2024-04-26 23:12:05,458 [INFO] [DAILY SET] Trying to complete the Daily Set...
2024-04-26 23:13:31,182 [INFO] [DAILY SET] Completed the Daily Set successfully !
2024-04-26 23:13:31,182 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2024-04-26 23:13:31,874 [INFO] [PUNCH CARDS] Completed the Punch Cards successfully !
2024-04-26 23:13:54,087 [INFO] [MORE PROMOS] Trying to complete More Promotions...
2024-04-26 23:14:34,836 [INFO] [MORE PROMOS] Completed More Promotions successfully !
2024-04-26 23:14:35,817 [ERROR] [CRITICAL] โš ๏ธ Error occurred after 3 attempts. Closing script!โš ๏ธ | [email protected]
2024-04-26 23:14:35,819 [INFO] [POINTS] Data saved for the next day.
(Pc Freezes Here)

Screenshots

There are no screenshots since I do not want to crash my pc again

Value of dashboard variable

Since github flagged me from creating a gist I cannot give you the source code.

[ERROR] AttributeError: 'Searches' object has no attribute 'bingSearchesWithScrolling'

2023-10-26 12:46:00,623 [ERROR] AttributeError: 'Searches' object has no attribute 'bingSearchesWithScrolling'
Traceback (most recent call last):
File "/Users/simone/Downloads/MS-Rewards-Farmer-master/main.py", line 39, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/simone/Downloads/MS-Rewards-Farmer-master/main.py", line 200, in executeBot
accountPointsCounter = Searches(desktopBrowser).bingSearchesWithScrolling(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Searches' object has no attribute 'bingSearchesWithScrolling'
Points data saved for the next day.

Unencrypted Saved Sessions Mail Display Request

I sincerely request the introduction of a functionality to show saved sessions in their original, unencrypted state. This would allow me to rapidly identify and delete individual account sessions in case of issues. Your prompt consideration is much appreciated.

image

[BUG] SyntaxError

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

The program was working perfectly for a few weeks until this error appeared.
I feel like its something thats not updated but idk

Note: I do not know python so simplifiy some things

Extra Info:

  • I made sessions folder auto delete after running so I have already tried deleting it
  • Tried updating requirements

Copy and paste your error

E:\Downloads\MS-Rewards-Farmer-master>python main.py
File "E:\Downloads\MS-Rewards-Farmer-master\main.py", line 66
"Date": date,
^
SyntaxError: invalid syntax

Screenshots

CMD Prompt:
image

VSCode:
image

Value of dashboard variable

Github flagged my account for creating a gist so I will not put one here unless you ask me too again and ill try.

[BUG] error target window already closed

when executing the script, it errors out with [ERROR] NoSuchWindowException: Message: no such window: target window already closed

this happens on Ubuntu 23.04 executing the script via SSH with no other user logged on. Chrome is installed.

Description

From the info:

2023-11-28 11:00:15,895 [INFO] [email protected]
2023-11-28 11:00:16,337 [INFO] Using default request storage
2023-11-28 11:00:16,344 [INFO] Created proxy listening on 127.0.0.1:47217
2023-11-28 11:00:16,344 [INFO] Using undetected_chromedriver
2023-11-28 11:00:17,071 [INFO] patching driver executable /home/xxxx/.local/share/undetected_chromedriver/undetected_chromedriver
2023-11-28 11:00:17,668 [INFO] Screen size: 2113x1205
2023-11-28 11:00:17,669 [INFO] Device size: 2058x1054
2023-11-28 11:00:17,735 [INFO] [LOGIN] Logging-in...
2023-11-28 11:00:23,336 [INFO] [LOGIN] Logged-in !
2023-11-28 11:00:24,481 [INFO] [LOGIN] Ensuring you are logged into Bing...
2023-11-28 11:00:31,230 [INFO] [LOGIN] Logged-in successfully !
2023-11-28 11:00:31,230 [INFO] [POINTS] You have 200.00 points on your account
2023-11-28 11:00:31,230 [INFO] [DAILY SET] Trying to complete the Daily Set...
2023-11-28 11:00:42,334 [INFO] [DAILY SET] Completing search of card 2
2023-11-28 11:00:57,198 [INFO] [DAILY SET] Completing poll of card 3
2023-11-28 11:00:58,860 [ERROR] NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=119.0.6045.159)
Stacktrace:
#0 0x557f0b9f65e3
#1 0x557f0b6b90b7
#2 0x557f0b68d1b8
#3 0x557f0b7336ef
#4 0x557f0b749306
#5 0x557f0b72dcc3
#6 0x557f0b6f90e4
#7 0x557f0b6fa0ae
#8 0x557f0b9bcce1
#9 0x557f0b9c0b7e
#10 0x557f0b9aa4b5
#11 0x557f0b9c17d6
#12 0x557f0b98ddbf
#13 0x557f0b9e4748
#14 0x557f0b9e4917
#15 0x557f0b9f5773
#16 0x7fe4a568f6ba

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/scripts/xxxx/MS-Rewards-Farmer/main.py", line 34, in main
earned_points = executeBot(currentAccount, notifier, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scripts/xxxx/MS-Rewards-Farmer/main.py", line 199, in executeBot
DailySet(desktopBrowser).completeDailySet()
File "/opt/scripts/xxxx/MS-Rewards-Farmer/src/dailySet.py", line 79, in completeDailySet
self.browser.utils.resetTabs()
File "/opt/scripts/xxxx/MS-Rewards-Farmer/src/utils.py", line 106, in resetTabs
self.goHome()
File "/opt/scripts/xxxx/MS-Rewards-Farmer/src/utils.py", line 112, in goHome
self.webdriver.get(BASE_URL)
File "/opt/scripts/xxxx/MS-Rewards-Farmer/venv/lib/python3.11/site-packages/undetected_chromedriver/init.py", line 496, in get_wrapped
if self.execute_script("return navigator.webdriver"):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scripts/xxxx/MS-Rewards-Farmer/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 407, in execute_script
return self.execute(command, {"script": script, "args": converted_args})["value"]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scripts/xxxx/MS-Rewards-Farmer/venv/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/opt/scripts/xxxx/MS-Rewards-Farmer/venv/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=119.0.6045.159)

Actual Behavior

If I execute the script a second time, sometimes it gets a bit further but does never complete successfully.

Steps to Reproduce

Executing the script with ./venv/bin/python3 main.py

Your Environment

  • Version used: current on 11/28/2023, not sure where to find a version
  • Environment name and version (e.g. Chrome ver): Chrome 119.0.6045.159
  • Operating System and version: Ubuntu 23.04

[BUG] Python error in Punch Cards

Before submitting a bug report...

  • This bug wasn't already reported.
    (I have checked every bug report on GitHub)

Title

  • The title is no longer "[BUG] Title" and I edited it with the right error name.

Describe the bug

When the script goes to punch cardsm it throws a veryyyy long error

macOS 14.3.1 (latest)

Copy and paste your error

024-03-05 18:47:29,879 [INFO] [LOGIN] Logging-in...
2024-03-05 18:47:38,559 [INFO] [LOGIN] Logged-in !
2024-03-05 18:47:39,696 [INFO] [LOGIN] Ensuring you are logged into Bing...
2024-03-05 18:47:43,917 [INFO] [LOGIN] Logged-in successfully !
2024-03-05 18:47:43,917 [INFO] [POINTS] You have 879.00 points on your account
2024-03-05 18:47:43,917 [INFO] [DAILY SET] Trying to complete the Daily Set...
2024-03-05 18:47:44,974 [INFO] [DAILY SET] Completed the Daily Set successfully !
2024-03-05 18:47:44,974 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2024-03-05 18:47:44,996 [INFO] [PUNCH CARDS] Completed the Punch Cards successfully !
2024-03-05 18:47:53,324 [INFO] [MORE PROMOS] Trying to complete More Promotions...
2024-03-05 18:48:14,112 [ERROR] NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=122.0.6261.94)
Stacktrace:
0 undetected_chromedriver 0x0000000102c792f8 undetected_chromedriver + 4625144
1 undetected_chromedriver 0x0000000102c70ea3 undetected_chromedriver + 4591267
2 undetected_chromedriver 0x000000010286fe6a undetected_chromedriver + 392810
3 undetected_chromedriver 0x000000010284693d undetected_chromedriver + 223549
4 undetected_chromedriver 0x00000001028e666d undetected_chromedriver + 878189
5 undetected_chromedriver 0x00000001028fc008 undetected_chromedriver + 966664
6 undetected_chromedriver 0x00000001028dd613 undetected_chromedriver + 841235
7 undetected_chromedriver 0x00000001028ae3da undetected_chromedriver + 648154
8 undetected_chromedriver 0x00000001028aed1e undetected_chromedriver + 650526
9 undetected_chromedriver 0x0000000102c39ac0 undetected_chromedriver + 4364992
10 undetected_chromedriver 0x0000000102c3ee86 undetected_chromedriver + 4386438
11 undetected_chromedriver 0x0000000102c1e72e undetected_chromedriver + 4253486
12 undetected_chromedriver 0x0000000102c3fbc9 undetected_chromedriver + 4389833
13 undetected_chromedriver 0x0000000102c10a79 undetected_chromedriver + 4196985
14 undetected_chromedriver 0x0000000102c5fb78 undetected_chromedriver + 4520824
15 undetected_chromedriver 0x0000000102c5fd57 undetected_chromedriver + 4521303
16 undetected_chromedriver 0x0000000102c70ae3 undetected_chromedriver + 4590307
17 libsystem_pthread.dylib 0x00007ff80481f202 _pthread_start + 99
18 libsystem_pthread.dylib 0x00007ff80481abab thread_start + 15

Traceback (most recent call last):
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/morePromotions.py", line 44, in completeMorePromotions
self.activities.completeSearch()
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/activities.py", line 34, in completeSearch
self.browser.utils.closeCurrentTab()
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/utils.py", line 246, in closeCurrentTab
self.webdriver.switch_to.window(window_name=self.webdriver.window_handles[0])
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/utils.py", line 100, in resetTabs
curr = self.webdriver.current_window_handle
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/undetected_chromedriver/init.py", line 806, in getattribute
return super().getattribute(item)
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 483, in current_window_handle
return self.execute(Command.W3C_GET_CURRENT_WINDOW_HANDLE)["value"]
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=122.0.6261.94)
Stacktrace:
0 undetected_chromedriver 0x0000000102c792f8 undetected_chromedriver + 4625144
1 undetected_chromedriver 0x0000000102c70ea3 undetected_chromedriver + 4591267
2 undetected_chromedriver 0x000000010286fe6a undetected_chromedriver + 392810
3 undetected_chromedriver 0x000000010284693d undetected_chromedriver + 223549
4 undetected_chromedriver 0x00000001028e666d undetected_chromedriver + 878189
5 undetected_chromedriver 0x00000001028ece08 undetected_chromedriver + 904712
6 undetected_chromedriver 0x00000001028dd838 undetected_chromedriver + 841784
7 undetected_chromedriver 0x00000001028ae3da undetected_chromedriver + 648154
8 undetected_chromedriver 0x00000001028aed1e undetected_chromedriver + 650526
9 undetected_chromedriver 0x0000000102c39ac0 undetected_chromedriver + 4364992
10 undetected_chromedriver 0x0000000102c3ee86 undetected_chromedriver + 4386438
11 undetected_chromedriver 0x0000000102c1e72e undetected_chromedriver + 4253486
12 undetected_chromedriver 0x0000000102c3fbc9 undetected_chromedriver + 4389833
13 undetected_chromedriver 0x0000000102c10a79 undetected_chromedriver + 4196985
14 undetected_chromedriver 0x0000000102c5fb78 undetected_chromedriver + 4520824
15 undetected_chromedriver 0x0000000102c5fd57 undetected_chromedriver + 4521303
16 undetected_chromedriver 0x0000000102c70ae3 undetected_chromedriver + 4590307
17 libsystem_pthread.dylib 0x00007ff80481f202 _pthread_start + 99
18 libsystem_pthread.dylib 0x00007ff80481abab thread_start + 15

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/lincolnmuller/MS-Rewards-Farmer/main.py", line 48, in main
earned_points = executeBot(currentAccount, notifier, args)
File "/Users/lincolnmuller/MS-Rewards-Farmer/main.py", line 245, in executeBot
MorePromotions(desktopBrowser).completeMorePromotions()
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/morePromotions.py", line 47, in completeMorePromotions
self.browser.utils.resetTabs()
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/utils.py", line 113, in resetTabs
self.goHome()
File "/Users/lincolnmuller/MS-Rewards-Farmer/src/utils.py", line 120, in goHome
self.webdriver.get(BASE_URL)
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/undetected_chromedriver/init.py", line 496, in get_wrapped
if self.execute_script("return navigator.webdriver"):
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 407, in execute_script
return self.execute(command, {"script": script, "args": converted_args})["value"]
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
self.error_handler.check_response(response)
File "/Users/lincolnmuller/Library/Python/3.9/lib/python/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchWindowException: Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=122.0.6261.94)
Stacktrace:
0 undetected_chromedriver 0x0000000102c792f8 undetected_chromedriver + 4625144
1 undetected_chromedriver 0x0000000102c70ea3 undetected_chromedriver + 4591267
2 undetected_chromedriver 0x000000010286fe6a undetected_chromedriver + 392810
3 undetected_chromedriver 0x000000010284693d undetected_chromedriver + 223549
4 undetected_chromedriver 0x00000001028e666d undetected_chromedriver + 878189
5 undetected_chromedriver 0x00000001028fc008 undetected_chromedriver + 966664
6 undetected_chromedriver 0x00000001028dd613 undetected_chromedriver + 841235
7 undetected_chromedriver 0x00000001028ae3da undetected_chromedriver + 648154
8 undetected_chromedriver 0x00000001028aed1e undetected_chromedriver + 650526
9 undetected_chromedriver 0x0000000102c39ac0 undetected_chromedriver + 4364992
10 undetected_chromedriver 0x0000000102c3ee86 undetected_chromedriver + 4386438
11 undetected_chromedriver 0x0000000102c1e72e undetected_chromedriver + 4253486
12 undetected_chromedriver 0x0000000102c3fbc9 undetected_chromedriver + 4389833
13 undetected_chromedriver 0x0000000102c10a79 undetected_chromedriver + 4196985
14 undetected_chromedriver 0x0000000102c5fb78 undetected_chromedriver + 4520824
15 undetected_chromedriver 0x0000000102c5fd57 undetected_chromedriver + 4521303
16 undetected_chromedriver 0x0000000102c70ae3 undetected_chromedriver + 4590307
17 libsystem_pthread.dylib 0x00007ff80481f202 _pthread_start + 99
18 libsystem_pthread.dylib 0x00007ff80481abab thread_start + 15

Screenshots

I manually did the punch cards myself after, so unfortunately this isn't possible

Value of dashboard variable

https://gist.github.com/Thyssenkrupp234/1524b637bedf53857170f0834658afa6

[BUG] "dashboard is not defined"

Description

When having multiple accounts, an error occurs after/while punch cards are being completed.

Expected Behavior

Project shouldn't crash and should run to completion.

Actual Behavior

When doing the punch cards, the script crashes with the error "dashboard is not defined"

Steps to Reproduce

  1. Have multiple accounts in accounts.json
  2. run the main.py script
  3. wait for it to try and complete the punch cards

Context

Makes the project unusable and unstable.

Your Environment

  • Version used: 4bd377f
  • Environment name and version (e.g. Chrome ver): 119.0.6045.159
  • Operating System and version: Fedora silverblue with an Arch Linux container

logs:

2023-11-21 21:30:56,313 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2023-11-21 21:30:56,647 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined
  (Session info: chrome=119.0.6045.159)
Stacktrace:
#0 0x5581edde25e3 <unknown>
#1 0x5581edaa50b7 <unknown>
#2 0x5581edaab2b5 <unknown>
#3 0x5581edaad9b1 <unknown>
#4 0x5581edb3671f <unknown>
#5 0x5581edb19ef2 <unknown>
#6 0x5581edb35b3d <unknown>
#7 0x5581edb19cc3 <unknown>
#8 0x5581edae50e4 <unknown>
#9 0x5581edae60ae <unknown>
#10 0x5581edda8ce1 <unknown>
#11 0x5581eddacb7e <unknown>
#12 0x5581edd964b5 <unknown>
#13 0x5581eddad7d6 <unknown>
#14 0x5581edd79dbf <unknown>
#15 0x5581eddd0748 <unknown>
#16 0x5581eddd0917 <unknown>
#17 0x5581edde1773 <unknown>
#18 0x7f84350f99eb <unknown>

Traceback (most recent call last):
  File "/var/home/primary/MS-Rewards-Farmer/main.py", line 34, in main
    earned_points = executeBot(currentAccount, notifier, args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/MS-Rewards-Farmer/main.py", line 200, in executeBot
    PunchCards(desktopBrowser).completePunchCards()
  File "/var/home/primary/MS-Rewards-Farmer/src/punchCards.py", line 54, in completePunchCards
    punchCards = self.browser.utils.getDashboardData()["punchCards"]
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/MS-Rewards-Farmer/src/utils.py", line 144, in getDashboardData
    return self.webdriver.execute_script("return dashboard")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 407, in execute_script
    return self.execute(command, {"script": script, "args": converted_args})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: dashboard is not defined
  (Session info: chrome=119.0.6045.159)
Stacktrace:
#0 0x5581edde25e3 <unknown>
#1 0x5581edaa50b7 <unknown>
#2 0x5581edaab2b5 <unknown>
#3 0x5581edaad9b1 <unknown>
#4 0x5581edb3671f <unknown>
#5 0x5581edb19ef2 <unknown>
#6 0x5581edb35b3d <unknown>
#7 0x5581edb19cc3 <unknown>
#8 0x5581edae50e4 <unknown>
#9 0x5581edae60ae <unknown>
#10 0x5581edda8ce1 <unknown>
#11 0x5581eddacb7e <unknown>
#12 0x5581edd964b5 <unknown>
#13 0x5581eddad7d6 <unknown>
#14 0x5581edd79dbf <unknown>
#15 0x5581eddd0748 <unknown>
#16 0x5581eddd0917 <unknown>
#17 0x5581edde1773 <unknown>
#18 0x7f84350f99eb <unknown>

2023-11-21 21:30:56,651 [INFO] [POINTS] Data saved for the next day.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.