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

Container crashes after QR #580

Open flangol opened 5 years ago

flangol commented 5 years ago

Hi, I tried following the manual, but when I start the webwhatsapi container I get the following on the firefox container output: console.error: BroadcastService: receivedBroadcastMessage: handler for remote-settings/monitor_changes threw error: Message: Error: Polling for changes failed: NetworkError when attempting to fetch resource.. Stack: remoteSettingsFunction/remoteSettings.pollChanges@resource://services-settings/remote-settings.js:188:13 If I start the webwhatsapi container using : docker run --network selenium -it -e SELENIUM='http://firefox:4444/wd/hub' -v $(pwd):/app webwhatsapi /bin/bash -c "pip install ./;pip list;python sample/remote.py" The container exit once I get the error on the firefox container : Waiting for QR Saving session Bot started Checking for more messages, status LoggedIn Traceback (most recent call last): File "sample/remote.py", line 28, in for contact in driver.get_unread(): File "/usr/local/lib/python2.7/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/python2.7/site-packages/webwhatsapi/wapi_js_wrapper.py", line 44, in getattr wapi_functions = dir(self) File "/usr/local/lib/python2.7/site-packages/webwhatsapi/wapi_js_wrapper.py", line 69, in dir result = self.driver.execute_script("return window.WAPI") File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script 'args': converted_args})['value'] File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, 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 If I start the container with new_messages_observer.py, it doesn't crash, but I'm not getting any new messages displayed.

Thanks.

lfdelphino commented 5 years ago

Please check #404

Thanks

flangol commented 5 years ago

Thanks, I downgraded the firefox to the recommended version and it worked.

On Tue, Mar 26, 2019 at 4:48 PM Luiz Delphino notifications@github.com wrote:

Please check #404 https://github.com/mukulhase/WebWhatsapp-Wrapper/issues/404

Thanks