Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javascript error: dashboard is not defined #430

Open
ArtesVilla92 opened this issue Jan 24, 2024 · 1 comment
Open

javascript error: dashboard is not defined #430

ArtesVilla92 opened this issue Jan 24, 2024 · 1 comment

Comments

@ArtesVilla92
Copy link

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
Copy link

ExtremeMemes commented Jan 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants