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.02k stars 796 forks source link

ReferenceError: webpackChunkbuild is not defined #1065

Open Ultrakommandant opened 2 years ago

Ultrakommandant commented 2 years ago

Hello,

What did I wrong? I started ./docker-entrypoint.sh

Kind regarts

(venv39) grxredzero@kommandozentrale:~/Software/WebWhatsapp-Wrapper$ ./docker-entrypoint.sh Processing /home/grxredzero/Software/WebWhatsapp-Wrapper DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default. pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555. Requirement already satisfied: python-dateutil>=2.6.0 in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (2.8.2) Requirement already satisfied: selenium>=3.4.3 in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (3.141.0) Requirement already satisfied: six>=1.10.0 in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (1.16.0) Requirement already satisfied: python-axolotl in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (0.2.3) Requirement already satisfied: cryptography in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (3.4.7) Requirement already satisfied: python-magic in ./venv39/lib/python3.9/site-packages (from webwhatsapi==2.0.3) (0.4.24) Requirement already satisfied: urllib3 in ./venv39/lib/python3.9/site-packages (from selenium>=3.4.3->webwhatsapi==2.0.3) (1.26.6) Requirement already satisfied: cffi>=1.12 in ./venv39/lib/python3.9/site-packages (from cryptography->webwhatsapi==2.0.3) (1.14.6) Requirement already satisfied: pycparser in ./venv39/lib/python3.9/site-packages (from cffi>=1.12->cryptography->webwhatsapi==2.0.3) (2.20) Requirement already satisfied: python-axolotl-curve25519>=0.4.1 in ./venv39/lib/python3.9/site-packages (from python-axolotl->webwhatsapi==2.0.3) (0.4.1.post2) Requirement already satisfied: protobuf>=3.0.0.b2 in ./venv39/lib/python3.9/site-packages (from python-axolotl->webwhatsapi==2.0.3) (3.17.3) Using legacy 'setup.py install' for webwhatsapi, since package 'wheel' is not installed. Installing collected packages: webwhatsapi Running setup.py install for webwhatsapi ... done Successfully installed webwhatsapi-2.0.3 Package Version


appdirs 1.4.4 argcomplete 1.12.3 attrs 21.2.0 backcall 0.2.0 black 19.10b0 certifi 2021.5.30 cffi 1.14.6 charset-normalizer 2.0.4 click 8.0.1 colorama 0.4.4 commitizen 2.17.13 coverage 5.5 cryptography 3.4.7 decli 0.5.2 decorator 5.0.9 flake8 3.9.2 flake8-black 0.2.0 idna 3.2 ipython 7.25.0 ipython-genutils 0.2.0 jedi 0.18.0 Jinja2 3.0.1 MarkupSafe 2.0.1 matplotlib-inline 0.1.2 mccabe 0.6.1 numpy 1.21.1 packaging 20.9 parso 0.8.2 pathspec 0.9.0 pexpect 4.8.0 pickleshare 0.7.5 Pillow 8.3.1 pip 21.2.2 prompt-toolkit 3.0.19 protobuf 3.17.3 ptyprocess 0.7.0 pycodestyle 2.7.0 pycparser 2.20 pyflakes 2.3.1 Pygments 2.9.0 pyparsing 2.4.7 python-axolotl 0.2.3 python-axolotl-curve25519 0.4.1.post2 python-dateutil 2.8.2 python-magic 0.4.24 python-resize-image 1.1.19 PyYAML 5.4.1 questionary 1.10.0 regex 2021.7.6 requests 2.26.0 selenium 3.141.0 setuptools 56.0.0 six 1.16.0 termcolor 1.1.0 toml 0.10.2 tomlkit 0.7.2 traitlets 5.0.5 typed-ast 1.4.3 typing 3.7.4.3 urllib3 1.26.6 wcwidth 0.2.5 webwhatsapi 2.0.3 Environment environ({'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:', 'SSH_CONNECTION': '192.168.178.83 64517 192.168.178.64 22', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'LANG': 'C.UTF-8', 'OLDPWD': '/home/grxredzero', 'VIRTUAL_ENV': '/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39', 'XDG_SESSION_ID': '3', 'SELENIUM': 'http://localhost:4444/wd/hub', 'USER': 'grxredzero', 'PWD': '/home/grxredzero/Software/WebWhatsapp-Wrapper', 'HOME': '/home/grxredzero', 'SSH_CLIENT': '192.168.178.83 64517 22', 'XDG_DATA_DIRS': '/usr/local/share:/usr/share:/var/lib/snapd/desktop', 'SSH_TTY': '/dev/pts/1', 'MAIL': '/var/mail/grxredzero', 'SHELL': '/bin/bash', 'TERM': 'xterm', 'SHLVL': '2', 'LOGNAME': 'grxredzero', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PATH': '/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/bin:/home/grxredzero/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'MYPHONE': '4915218573015', '': '/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/bin/python'}) Waiting for QR Saving session Bot started Checking for more messages, status LoggedIn Traceback (most recent call last): File "/home/grxredzero/Software/WebWhatsapp-Wrapper/sample/remote.py", line 35, in for contact in driver.get_unread(): File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/webwhatsapi/init.py", line 421, in get_unread raw_message_groups = self.wapi_functions.getUnreadMessages( File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/webwhatsapi/wapi_js_wrapper.py", line 44, in getattr wapi_functions = dir(self) File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/webwhatsapi/wapi_js_wrapper.py", line 72, in dir self.driver.execute_script(script.read()) File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 634, in execute_script return self.execute(command, { File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute self.error_handler.check_response(response) File "/home/grxredzero/Software/WebWhatsapp-Wrapper/venv39/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: ReferenceError: webpackChunkbuild is not defined

zBuffer commented 2 years ago

Change wapi.js:

webpackChunkbuild.push([

To:

(window.webpackChunkbuild || window.webpackChunkwhatsapp_web_client).push([
Ultrakommandant commented 2 years ago

Very Thank you!!!! Thats the Solution!

Adilmar commented 2 years ago

Very nice, thanksssssssssssss