charlesbel / Microsoft-Rewards-Farmer

A simple bot that uses selenium to farm Microsoft Rewards written in Python
MIT License
1.02k stars 273 forks source link

[BUG] dashboard is not defined #275

Open Legend-Recalls opened 1 year ago

Legend-Recalls commented 1 year ago

Before submitting a bug report...

Title

Describe the bug

running the program as intended, i got an error with dashboard not define, leaving error logs activity.log

Copy and paste your error

2023-08-14 23:47:35,000 [INFO] ****EmperorRuling@outlook.com**** 2023-08-14 23:47:36,195 [INFO] Using default request storage 2023-08-14 23:47:36,217 [INFO] Created proxy listening on 127.0.0.1:51706 2023-08-14 23:47:36,219 [INFO] Using undetected_chromedriver 2023-08-14 23:47:36,914 [INFO] patching driver executable C:\Users\Lells\appdata\roaming\undetected_chromedriver\undetected_chromedriver.exe 2023-08-14 23:47:37,871 [INFO] Screen size: 1855x1322 2023-08-14 23:47:37,871 [INFO] Device size: 1800x1171 2023-08-14 23:47:38,013 [INFO] [LOGIN] Logging-in... 2023-08-14 23:48:07,285 [INFO] [LOGIN] Logged-in ! 2023-08-14 23:51:23,117 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined (Session info: chrome=115.0.5790.171) Stacktrace: Backtrace: GetHandleVerifier [0x004AA813+48355] (No symbol) [0x0043C4B1] (No symbol) [0x00345358] (No symbol) [0x003487A1] (No symbol) [0x0034A19B] (No symbol) [0x0039D279] (No symbol) [0x0038A73C] (No symbol) [0x0039C922] (No symbol) [0x0038A536] (No symbol) [0x003682DC] (No symbol) [0x003693DD] GetHandleVerifier [0x0070AABD+2539405] GetHandleVerifier [0x0074A78F+2800735] GetHandleVerifier [0x0074456C+2775612] GetHandleVerifier [0x005351E0+616112] (No symbol) [0x00445F8C] (No symbol) [0x00442328] (No symbol) [0x0044240B] (No symbol) [0x00434FF7] BaseThreadInitThunk [0x75FD7BA9+25] RtlInitializeExceptionChain [0x7727BB3B+107] RtlClearBits [0x7727BABF+191] Traceback (most recent call last): File "C:\Users\Lells\Desktop\Microsoft-Rewards-Farmer-master\main.py", line 24, in main executeBot(currentAccount, notifier, args) File "C:\Users\Lells\Desktop\Microsoft-Rewards-Farmer-master\main.py", line 128, in executeBot accountPointsCounter = Login(desktopBrowser).login() File "C:\Users\Lells\Desktop\Microsoft-Rewards-Farmer-master\src\login.py", line 43, in login points = self.utils.getAccountPoints() File "C:\Users\Lells\Desktop\Microsoft-Rewards-Farmer-master\src\utils.py", line 146, in getAccountPoints return self.getDashboardData()["userStatus"]["availablePoints"] File "C:\Users\Lells\Desktop\Microsoft-Rewards-Farmer-master\src\utils.py", line 116, in getDashboardData return self.webdriver.execute_script("return dashboard") File "C:\Users\Lells\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 405, in execute_script return self.execute(command, {"script": script, "args": converted_args})["value"] File "C:\Users\Lells\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\remote\webdriver.py", line 345, in execute self.error_handler.check_response(response) File "C:\Users\Lells\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\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=115.0.5790.171) Stacktrace: Backtrace: GetHandleVerifier [0x004AA813+48355] (No symbol) [0x0043C4B1] (No symbol) [0x00345358] (No symbol) [0x003487A1] (No symbol) [0x0034A19B] (No symbol) [0x0039D279] (No symbol) [0x0038A73C] (No symbol) [0x0039C922] (No symbol) [0x0038A536] (No symbol) [0x003682DC] (No symbol) [0x003693DD] GetHandleVerifier [0x0070AABD+2539405] GetHandleVerifier [0x0074A78F+2800735] GetHandleVerifier [0x0074456C+2775612] GetHandleVerifier [0x005351E0+616112] (No symbol) [0x00445F8C] (No symbol) [0x00442328] (No symbol) [0x0044240B] (No symbol) [0x00434FF7] BaseThreadInitThunk [0x75FD7BA9+25] RtlInitializeExceptionChain [0x7727BB3B+107] RtlClearBits [0x7727BABF+191]

Screenshots

image

Value of dashboard variable

[https://gist.github.com/Legend-Recalls/11562298686c54d5bc082350eea3d401]

udu3324 commented 1 year ago

I am getting this error too

2023-08-14 13:15:37,044 [INFO] [LOGIN] Logging-in...
2023-08-14 13:15:55,005 [INFO] [LOGIN] Logged-in !
2023-08-14 13:17:49,469 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined
  (Session info: chrome=115.0.5790.171)
Stacktrace:
Backtrace:
        GetHandleVerifier [0x007BA813+48355]
        (No symbol) [0x0074C4B1]
        (No symbol) [0x00655358]
        (No symbol) [0x006587A1]
        (No symbol) [0x0065A19B]
        (No symbol) [0x006AD279]
        (No symbol) [0x0069A73C]
        (No symbol) [0x006AC922]
        (No symbol) [0x0069A536]
        (No symbol) [0x006782DC]
        (No symbol) [0x006793DD]
        GetHandleVerifier [0x00A1AABD+2539405]
        GetHandleVerifier [0x00A5A78F+2800735]
        GetHandleVerifier [0x00A5456C+2775612]
        GetHandleVerifier [0x008451E0+616112]
        (No symbol) [0x00755F8C]
        (No symbol) [0x00752328]
        (No symbol) [0x0075240B]
        (No symbol) [0x00744FF7]
        BaseThreadInitThunk [0x76537D59+25]
        RtlInitializeExceptionChain [0x7720B79B+107]
        RtlClearBits [0x7720B71F+191]
charlesbel commented 1 year ago

Can any of you run it with -v argument to see what's happening in the browser when the error occurs

Legend-Recalls commented 1 year ago

image keeps reentering password checked the json file it is in correct format

charlesbel commented 1 year ago

image keeps reentering password checked the json file it is in correct format

I see, it is not handled in the script so we need to fix this, will do it

royaltongue commented 1 year ago

Any update on this?

agustinscaz commented 11 months ago

update?