mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.04k stars 794 forks source link

Error send messages #704

Open nanopn opened 5 years ago

nanopn commented 5 years ago

Hi, when I try to send a message, I get this error:

Traceback (most recent call last): File "", line 1, in File "/home/hpazos/src/whatsapp/webwhatsapi/init.py", line 568, in send_message_to_id return self.wapi_functions.sendMessageToID(recipient, message) File "/home/hpazos/src/whatsapp/webwhatsapi/wapi_js_wrapper.py", line 44, in getattr wapi_functions = dir(self) File "/home/hpazos/src/whatsapp/webwhatsapi/wapi_js_wrapper.py", line 69, in dir result = self.driver.execute_script("return window.WAPI") File "/home/hpazos/.virtualenvs/whatsapp/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script 'args': converted_args})['value'] File "/home/hpazos/.virtualenvs/whatsapp/lib/python3.6/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/hpazos/.virtualenvs/whatsapp/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: javascript error: circular reference (Session info: chrome=76.0.3809.132)

Do you know how I can fix it?

jersonjunior commented 5 years ago

Try this: https://chromedriver.storage.googleapis.com/76.0.3809.126/chromedriver_linux64.zip unzip chromedriver_linux64.zip mv chromedriver /usr/bin chow -R youruser.yourser /usr/bin/chromedriver

mbemquerer commented 5 years ago

Hello, any news about this issue? Above solution didnt work for me.

mbemquerer commented 5 years ago

I cant find any driver that is wokring with version 77.x

jersonjunior commented 5 years ago

Look this: https://chromedriver.storage.googleapis.com/index.html?path=77.0.3865.40/

I'm running normally using docker, I did not understand how difficult it is to send message, you could not reply message after receipt, would that be?

lfdelphino commented 5 years ago

Try running Firefox 61.0.2 instead of Chrome

MakdosBilisim commented 4 years ago

Not working with Chrome last version.

selenium.common.exceptions.JavascriptException: Message: javascript error: circular reference (Session info: chrome=79.0.3945.88)

MakdosBilisim commented 4 years ago

install with pip:

selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read property 'child' of undefined (Session info: chrome=79.0.3945.88)

I think wapi.js is not current.