open-wa / wa-automate-docker

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

API not working from docker #39

Closed manojsitapara closed 2 years ago

manojsitapara commented 2 years ago

I am running following command to start docker container

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

docker container started and I can show QR code on terminal, but when I try to access following URLs from browser but it is not working

http://localhost:8080/ http://localhost:8080/qr http://localhost:8080/api-docs

smashah commented 2 years ago

@manojsitapara what are the internal logs showing? Maybe the session failed to start

manojsitapara commented 2 years ago

Here is logs

  • session_STARTUP
  • DEBUG - PORT: 8080
  • DEBUG - flags: {"sessionId":"session","useChrome":true,"popup":true,"disableSpins":true,"port":8080,"executablePath":"/usr/bin/google-chrome-stable","inDocker":true,"qrTimeout":0,"debug":true,"multiDevice":true,"noApi":false,"host":"localhost","verbose":false,"ef":["qr","STARTUP","MD_DETECT"],"allowSessionDataWh":false,"generateApiDocs":true,"sessionDataOnly":false,"skipSavePostmanCollection":false,"headful":false,"preAuthDocs":false,"stats":false,"noKillOnLogout":false,"cors":false,"socket":false,"emitUnread":false}
  • DEBUG - env vars: {"WA_USE_CHROME":"true","WA_POPUP":"true","WA_DISABLE_SPINS":"true","WA_PORT":"8080","WA_EXECUTABLE_PATH":"/usr/bin/google-chrome-stable"}
  • Launching EASY API
  • Selected port is free
  • Generating Swagger Spec
  • Postman collection generated: open-wa-session.postman_collection.json
  • API collections (swagger + postman) generated successfully ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃ ┃┃ @open-wa/wa-automate ┃┃ 💬 🤖 The most reliable NodeJS whatsapp library for chatbots with ┃┃ advanced features. ┃┃ Version: 4.33.7 ┃┃ Check out the latest changes: ┃┃ https://github.com/open-wa/wa-automate-nodejs#latest-changes ┃┃ ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ You can also authenticate the session at: NA
  • Starting
  • Version: 4.33.7
  • 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: 887ms
  • Setting Up Page
  • Loading session data
  • No session data file found for session : session
  • No session data detected. Opting in for MD.
  • Make sure to keep the session alive for at least 5 minutes after scanning the QR code before trying to restart a session!!
  • Pre page launch setup complete: 16ms
  • Navigating to WA
  • Page loaded in 1945ms: 200
  • Page loaded
  • Debug info: { "WA_VERSION": "2.2210.9", "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36", "WA_AUTOMATE_VERSION": "4.33.7", "BROWSER_VERSION": "HeadlessChrome/100.0.4896.75", "OS": "Linux 5.10", "START_TS": 1649474944386 }
  • Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&d_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.2210.9%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.33.7%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/100.0.4896.75%22,%0A%20%20%22START_TS%22:%201649474944386,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20true%0A%7D&enviro=-%20OS:%20Linux%205.10%0A-%20Node:%2017.8.0%0A-%20npm:%208.5.5&labels=CLI,MD
  • Time to injection: 4898ms
  • Injecting api
  • Injecting scripts
  • Base inject: 31ms
  • WAPI inject: 440ms
  • Checking session integrity
  • Session integrity check passed
  • Launch inject: 643ms
  • WAPI injected
  • Authenticating
  • Authenticate to continue
  • First QR: 8635 ms

When I tried to access from http://localhost:8080/qr, On browser it says

localhost didn’t send any data.
ERR_EMPTY_RESPONSE
manojsitapara commented 2 years ago

@smashah can you please help?

manojsitapara commented 2 years ago

Sorry there was issue with my local DNS settings, now working fine

manojsitapara commented 2 years ago

Reopening this issue, still facing issue on my local system as well as on server

http://localhost:8080/qr

image

@smashah can you please take a look. I am adding latest debug info again

  • session_STARTUP
  • DEBUG - PORT: 8080
  • DEBUG - flags: {"sessionId":"session","useChrome":true,"popup":true,"disableSpins":true,"port":8080,"executablePath":"/usr/bin/google-chrome-stable","inDocker":true,"qrTimeout":0,"debug":true,"multiDevice":true,"noApi":false,"host":"localhost","verbose":false,"ef":["qr","STARTUP","MD_DETECT"],"allowSessionDataWh":false,"generateApiDocs":true,"sessionDataOnly":false,"skipSavePostmanCollection":false,"headful":false,"preAuthDocs":false,"stats":false,"noKillOnLogout":false,"cors":false,"socket":false,"emitUnread":false}
  • DEBUG - env vars: {"WA_USE_CHROME":"true","WA_POPUP":"true","WA_DISABLE_SPINS":"true","WA_PORT":"8080","WA_EXECUTABLE_PATH":"/usr/bin/google-chrome-stable"}
  • Launching EASY API
  • Selected port is free
  • Generating Swagger Spec
  • Postman collection generated: open-wa-session.postman_collection.json
  • API collections (swagger + postman) generated successfully ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┃ ┃┃ @open-wa/wa-automate ┃┃ 💬 🤖 The most reliable NodeJS whatsapp library for chatbots with ┃┃ advanced features. ┃┃ Version: 4.35.6 ┃┃ Check out the latest changes: ┃┃ https://github.com/open-wa/wa-automate-nodejs#latest-changes ┃┃ ┃┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ You can also authenticate the session at: NA
  • Starting
  • Version: 4.35.6
  • 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: 212ms
  • Setting Up Page
  • Loading session data
  • No session data file found for session : session
  • No session data detected. Opting in for MD.
  • Make sure to keep the session alive for at least 5 minutes after scanning the QR code before trying to restart a session!!
  • Pre page launch setup complete: 22ms
  • Navigating to WA
  • Page loaded in 1642ms: 200
  • Page loaded
  • Debug info: { "WA_VERSION": "2.2212.7", "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36", "WA_AUTOMATE_VERSION": "4.35.6", "BROWSER_VERSION": "HeadlessChrome/100.0.4896.88", "OS": "Linux 5.10", "START_TS": 1649954558054, "RAM_INFO": "Total: 6.58 GB | Free: 5.17 GB" }
  • Use this easy pre-filled link to report an issue: https://github.com/open-wa/wa-automate-nodejs/issues/new?template=bug_report.yaml&d_info=%7B%0A%20%20%22WA_VERSION%22:%20%222.2212.7%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.35.6%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/100.0.4896.88%22,%0A%20%20%22START_TS%22:%201649954558054,%0A%20%20%22RAM_INFO%22:%20%22Total:%206.58%20GB%20%7C%20Free:%205.17%20GB%22,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20true%0A%7D&enviro=-%20OS:%20Linux%205.10%0A-%20Node:%2017.9.0%0A-%20npm:%208.5.5&labels=CLI,MD
  • Time to injection: 2144ms
  • Injecting api
  • Injecting scripts
  • Base inject: 28ms
  • WAPI inject: 357ms
  • Checking session integrity
  • Session integrity check passed
  • Launch inject: 695ms
  • WAPI injected
  • Authenticating
  • Authenticate to continue
  • First QR: 6306 ms
smashah commented 2 years ago

.

smashah commented 2 years ago

This is only isolated to the /qr endpoint it seems

smashah commented 2 years ago

@manojsitapara Try this instead:

docker run -p 8080:8080 --init -d openwa/wa-automate --multi-device --ezqr --ev https://webhook.site/325f79ff-437e-4554-a67d-ABCD --ef qrUrl --ef qr --ef qrEv

There are some extra flags here:

--ezqr: emits a simple URL which you can use anywhere to scan the qr code without exposing any internal ports/networking.

Looks like this in the terminal:

CleanShot 2022-04-17 at 00 20 15@2x

These qr urls are safe and random. How do you consistently get the qr url ? Via EVent webhook -ev https://webhook.site/325f79ff-437e-4554-a67d-ABCD

Specifically you need to filter ev to emit qrUrl, hence --ef qrUrl.

Now at the webhook address you will get this payload:

{
  "ts": 1650151079220,
  "data": "https://qr.openwa.cloud/631c5",
  "sessionId": "session",
  "namespace": "qrUrl"
}

You can also add --ef qrEv which sends the whole qr code via the ev webhook. Those payloads look something like this:

{
  "ts": 1650151198310,
  "data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6CAYAAACI7Fo9AAAAAXNSR0IArs4c6QAAHOFJREFUeF7tnduWG8cOQ4///6N9lqxM0uoLwU2yWuMR8hhV1wUECLJaGv/6/fv37//5PyNgBH40Ar8s9B8dXx/OCPxBwEI3EYzAByBgoX9AkH1EI2ChmwNG4AMQsNA/IMg+ohGw0M0BI/ABCFjoHxBkH9EIWOjmgBH4AAQs9A8Iso9oBCx0c8AIfAACFvoHBNlHNAIWujlgBD4AAQv9A4LsIxqButB//boHve2P6/ZrRj+8I2P3JyFni/a3n3fFDwWnzkn2dtea23X2+4v20NnfNmaKByT2U2ohcdqsaaGfBUAFePsMCXYxSCFHOqSOhBQteteaFvoxCkUOWegW+hMBQiAL/YgZMYeOu5M42dEF0iRodvR6klCktaN/Q0dXQctmMeIWRJDR+qTXj/putZ/sOqofvWodHv8/2kN2/TOHn5o3y4P9HhQvqvsjLQqJ/Tv0EJxlrnR/x8GUsLKkIgIgwSaXccS9LPRjFWGhx1c55T8lpTJsVmT7cWReC32O8Ar3qpA6MSJvXKr7s6PDPtaOHpfN6sLLjh73o6sSkYXeFDrJ5CRzb7elgp8du2oeUuaTRHnHazESv6kWZU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vTzDKnpMkLLV+9YJSvW2I4kD2v5nn7+rRCRFVkLJzEWAtdFZRKGxJDC30kNEWuhK8ImPkXtWMT/akxJAVgFqz6jJ29CNyP8rRq8QhrkhusSNwpwSpkkJ0cZf9bH/bq4SeLbGr8Tp7LnsWRXjS0hEcqkmryjfFabJ3xbGLPa5z9CpxFCjZedU82dvyySDcIYAVJM5i/jXujnOqJEH3/DW+KKTw3wYgXFT7Lu7PQt875NSF0LuczkJXUok/LwrJQqewq+yXnU/NY0fPIsnH2dHZ37ubrBqXl+6cDrknyGUSycZZMu53SdaIqoPOvUD1WfJcZ2z2Ak4RvIP1FbuUAWyf6+yP8KuDdU5F/5sr3ZML4mEW+hEyQozt0+S5zlgL/fUv8qj7hA7WSUFZ6Gc9epaoSZD/HTbVLhBiWOivUbKjQ9aqsgZOdzncjm5Hn+LSYx4LfRJNz2UEjMB3QqBeun+nU3gvRsAIhAhY6CaIEfgABCz0Dwiyj2gELHRzwAh8AAIW+gcE2Uc0Aha6OWAEPgABC/0DguwjGgEL3RwwAh+AgIX+AUH2EY2AhW4OGIEPQMBC/4Ag+4hGwEI3B4zAByBgoX9AkH1EI/B/3NJc1SHhAMEAAAAASUVORK5CYII=",
  "sessionId": "session",
  "namespace": "qr"
}

Clearly there is something wrong with /qr url networking within the docker environment. I suggest using the above method of getting the qr code.

The good thing with getting the qr via webhook is that it updates as the qr updates, whereas using /qr or even the easy qr url require you having to refresh them manually.

manojsitapara commented 2 years ago

Thank you @smashah !! Your suggested method is working using webhook, but I am still not able to figure it out the issue why it is not working from Docker.

smashah commented 2 years ago

@manojsitapara I don't know either. Best to give you an alternative until this is fixed. Till then the issue will stay open

smashah commented 2 years ago

@manojsitapara it's fixed now.