charlesbel / Microsoft-Rewards-Farmer

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

javascript error: dashboard is not defined #430

Open ArtesVilla92 opened 9 months ago

ArtesVilla92 commented 9 months ago

I've had this problem for about a day. I've tried doing the following things, but nothing seems to work:

2024-01-24 21:15:54,685 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined (Session info: chrome=121.0.6167.85) Stacktrace:

0 0x5619aec8ed93

1 0x5619ae972337

2 0x5619ae97769a

3 0x5619ae979c47

4 0x5619aea0005a

5 0x5619ae9e0442

6 0x5619ae9ff12d

7 0x5619ae9e01e3

8 0x5619ae9b0135

9 0x5619ae9b113e

10 0x5619aec52e4b

11 0x5619aec56dfa

12 0x5619aec3f6d5

13 0x5619aec57a6f

14 0x5619aec2369f

15 0x5619aec7c098

16 0x5619aec7c262

17 0x5619aec8df34

18 0x7f399a322ac3

Traceback (most recent call last): File "/home/mattia/Scrivania/Project/Microsoft-Rewards-Farmer/main.py", line 24, in main executeBot(currentAccount, notifier, args) File "/home/mattia/Scrivania/Project/Microsoft-Rewards-Farmer/main.py", line 128, in executeBot accountPointsCounter = Login(desktopBrowser).login() File "/home/mattia/Scrivania/Project/Microsoft-Rewards-Farmer/src/login.py", line 43, in login points = self.utils.getAccountPoints() File "/home/mattia/Scrivania/Project/Microsoft-Rewards-Farmer/src/utils.py", line 146, in getAccountPoints return self.getDashboardData()["userStatus"]["availablePoints"] File "/home/mattia/Scrivania/Project/Microsoft-Rewards-Farmer/src/utils.py", line 116, in getDashboardData return self.webdriver.execute_script("return dashboard") File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 408, in execute_script return self.execute(command, {"script": script, "args": converted_args})["value"] File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/remote/webdriver.py", line 348, 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.JavascriptException: Message: javascript error: dashboard is not defined (Session info: chrome=121.0.6167.85) Stacktrace:

0 0x5619aec8ed93

1 0x5619ae972337

2 0x5619ae97769a

3 0x5619ae979c47

4 0x5619aea0005a

5 0x5619ae9e0442

6 0x5619ae9ff12d

7 0x5619ae9e01e3

8 0x5619ae9b0135

9 0x5619ae9b113e

10 0x5619aec52e4b

11 0x5619aec56dfa

12 0x5619aec3f6d5

13 0x5619aec57a6f

14 0x5619aec2369f

15 0x5619aec7c098

16 0x5619aec7c262

17 0x5619aec8df34

18 0x7f399a322ac3

1) I deleted the session 2) I uninstalled and reinstalled Chrome 3) I uninstalled and reinstalled the requirements 4) I used Autoupdate_main.py

OS: Linux Mint 21.2 Victoria Python 3.10.12 requests 2.25.1 selenium 4.17.2 ipapi 1.0.4 undetected-chromedriver 3.5.4 selenium-wire 5.1.0

Log File: activity.log

ExtremeMemes commented 9 months ago

Same thing happening to me, on macos

Any solutions yet?

EDIT: You might have terminated the bot in a middle of activity. Try doing it manually and clearing session folder, or try again the next day