sigalor / whatsapp-web-reveng

Reverse engineering WhatsApp Web.
MIT License
6.1k stars 802 forks source link

Connection of backend to WhatsApp failed: Timeout. Click to try again. #278

Open eliveltonbecker opened 4 years ago

eliveltonbecker commented 4 years ago

Can someone help me with this problem?

whatsapp-web-reveng@1.0.0 win C:\ChatBotWhatsApp concurrently --kill-others "node_modules.bin\nodemon index.js -i client -e js" "node_modules.bin\nodemon --exec python ./backend/whatsapp_web_backend.py -i client -e py" "sass --watch client/css/main.scss:client/css/main.css"

[0] [nodemon] 2.0.3 [0] [nodemon] to restart at any time, enter rs [0] [nodemon] watching path(s): . [0] [nodemon] watching extensions: js [0] [nodemon] starting node index.js [1] [nodemon] 2.0.3 [1] [nodemon] to restart at any time, enter rs [1] [nodemon] watching path(s): . [1] [nodemon] watching extensions: py [1] [nodemon] starting python ./backend/whatsapp_web_backend.py [2] Sass is watching for changes. Press Ctrl-C to stop. [2] [0] whatsapp-web-reveng API server listening on port 2019 [0] whatsapp-web-reveng HTTP server listening on port 2018 [0] got message { command: 'api-connectBackend', from: 'client', type: 'call' } [0] got message { from: 'meta', type: 'opened' } [0] got message { type: 'connected', from: 'backend' } [0] got message { command: 'backend-connectWhatsApp', [0] from: 'client', [0] type: 'call' }

kang-mus commented 4 years ago

try to update backend/whatsapp_web_backend.py line 108

server = SimpleWebSocketServer("127.0.0.1", 2020, WhatsAppWeb);