Waiting for QR
Bot started
Checking for more messages
Traceback (most recent call last):
File "main.py", line 138, in <module>
check_unread()
File "main.py", line 44, in check_unread
for contact in driver.get_unread():
File "/home/pribaqnet/Escritorio/FestiBOT/webwhatsapi/_init_.py", line 338, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
File "/home/pribaqnet/Escritorio/FestiBOT/webwhatsapi/wapi_js_wrapper.py", line 44, in _getattr_
wapi_functions = dir(self)
File "/home/pribaqnet/Escritorio/FestiBOT/webwhatsapi/wapi_js_wrapper.py", line 69, in _dir_
result = self.driver.execute_script("return window.WAPI")
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 635, in execute_script
'args': converted_args})['value']
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: Cyclic object value
I don't wnow what to do ;)
Check version Firefox, I get this erro with 64bits
I installed x32 and I get the same error
Do you have what version of python? Have only one version of firefox? 62.0.0?
I us python3.6 and Firefox version 62
Same thing here, happened exactly after firefox updated
EDIT:
This link helped me. Try downgrading back to version 61.0.2 or using another browser like Chrome. Also, disable automatic updates on Options > General > Firefox Update.
This was happening for get_unread and sendMessageToID but downgrading worked like a charm
Thanks @lfdelphino But how i install this bz2?
Hope this helps: https://ftp.mozilla.org/pub/firefox/releases/61.0.2/
Downgrade to 61.0.2 to fix this error.
Just downgraded to 61.0.2. Cyclic error resolved but got a new error
Traceback (most recent call last):
File "echo.py", line 17, in
for contact in driver.get_unread():
File "../webwhatsapi/__init__.py", line 338, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
File "../webwhatsapi/wapi_js_wrapper.py", line 44, in __getattr__
wapi_functions = dir(self)
File "../webwhatsapi/wapi_js_wrapper.py", line 67, in __dir__
self.driver.execute_script(script.read())
File "/home/roshi/.local/share/virtualenvs/WebWhatsapp-Wrapper-5bdlp4zh/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 635, in execute_script
'args': converted_args})['value']
File "/home/roshi/.local/share/virtualenvs/WebWhatsapp-Wrapper-5bdlp4zh/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/home/roshi/.local/share/virtualenvs/WebWhatsapp-Wrapper-5bdlp4zh/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: SyntaxError: missing } after function body
Did you edit your echo.py before running or is it the same of the repository?
It still looks like a selenium error, are you using the latest version of this repo _(don't use pip)_?
Hi, I am using the docker containers and get this error:
" File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: Cyclic object value
"
The selenium hub now uses firefox 6.2 and my version of this library is the latest master from git, any recomendation?
That's a firefox related issue as discussed _(not only)_ on SeleniumHQ/#5621, you should still be able to downgrade firefox back to 61.0.2
Another option is trying to run with Chrome but I don't recommend that as it could be more buggy than this Cyclic exception
Just for info, I got the cyclic exception in firefox version 61.0.2, using ubuntu 18.04.1, python 3.5.
Also, I am testing the repo again chrome as of now, and it seems to work fine till now. Have run basic commands only, send/read a text message, get contacts. I will provide more notes if I face any issues with chrome and maybe try to resolve them too.
It was the firefox version, thanks to all
Worked for me as well. To downgrade Firefox to version 61 I downloaded it from here, removed firefox (sudo pacman -R firefox in Arch) and just created a link to the binary in the extracted folder with sudo ln -s ~/util/firefox/firefox /usr/local/bin/firefox.
It worked for me too
I tried to use firefox 62.0.3v but didn't work
Then I used the beta version 62.0b9 and it worked
is it gonna be fixed for the docker pipeline on the readme file ?
Same error here by just running the 2 docker containers in the readme.
Checking for more messages, status LoggedIn
Traceback (most recent call last):
File "sample/remote.py", line 30, in <module>
for contact in driver.get_unread():
File "/usr/local/lib/python3.6/site-packages/webwhatsapi/__init__.py", line 348, in get_unread
raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count)
File "/usr/local/lib/python3.6/site-packages/webwhatsapi/wapi_js_wrapper.py", line 44, in __getattr__
wapi_functions = dir(self)
File "/usr/local/lib/python3.6/site-packages/webwhatsapi/wapi_js_wrapper.py", line 69, in __dir__
result = self.driver.execute_script("return window.WAPI")
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.6/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: Cyclic object value
@danpe , Please downgrade the firefox version to 61.0.2 in the selenium docker. It should fix your issue.
@Jinul Awesome! works!
I used: docker run -d -p 4444:4444 -p 5900:5900 --name firefox --network selenium -v /dev/shm:/dev/shm selenium/standalone-firefox:3.14.0-curium
@Jinul Awesome! works!
I used:docker run -d -p 4444:4444 -p 5900:5900 --name firefox --network selenium -v /dev/shm:/dev/shm selenium/standalone-firefox:3.14.0-curium
It's also possible to build a selenium image with a custom Firefox version.
The following commands worked for me:
$ git clone https://github.com/SeleniumHQ/docker-selenium.git
$ cd docker-selenium/
$ BUILD_ARGS="--build-arg FIREFOX_VERSION=61.0.2" make standalone_firefox_debug
Hope this helps: https://ftp.mozilla.org/pub/firefox/releases/61.0.2/
I made the downgrade but the error remains!
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: TypeError: document.querySelector(...)._reactRootContainer.current is undefined
@nsperic are you sure you got the right version? If you're on linux, try firefox -v.
I am using windows and yes, the version of firefox to be correct.

@nsperic, Maybe you can give it a try with Docker environment.
Are there any plans on fixing this issue? staying on ff61 is not a solution, eventually it will go old
Most helpful comment
Are there any plans on fixing this issue? staying on ff61 is not a solution, eventually it will go old