open-wa / wa-automate-docker

💬 🤖 The easiest way to turn your WhatsApp into an API. Be sure to 🌟 this repository for updates!
106 stars 31 forks source link

Error in openwa/wa-automate:latest docker mage #47

Closed willmaraujo closed 2 years ago

willmaraujo commented 2 years ago

I'm getting this error when run

docker run -p 8081:8080 --init openwa/wa-automate --multi-device

During the container initialisation comes the error:

You can also authenticate the session at: http://localhost:8080
- Starting
- Version: 4.40.2
- Initializing WA
- Using custom chromium args with multi device will cause issues! Please remove them:
- Launching Browser
- MD Enabled, turning off incognito mode.
- Data dir: /sessions/_IGNORE_session
- Data dir doesnt exist, creating...: /sessions/_IGNORE_session
- Browser launched: 908ms
TypeError: waPage._client.send is not a function
    at /usr/src/app/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:71:24
    at Generator.next (<anonymous>)
    at fulfilled (/usr/src/app/node_modules/@open-wa/wa-automate/dist/controllers/browser.js:24:58)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
- session_STARTUP
- Error waPage._client.send is not a function TypeError: waPage._client.send is not a function
smashah commented 2 years ago

that's an extremely odd and unexpected error and am unable to replicate here.

Please try this:

> docker pull openwa/wa-automate:latest
> docker run -p 8081:8080 --init openwa/wa-automate:latest
smashah commented 2 years ago

Resolved in latest version. This is due to pptr changes and mismatches

willmaraujo commented 2 years ago

Perfect, thank you so much for the quick reply. No it's working perfectly!