open-wa / wa-automate-nodejs

πŸ’¬ πŸ€– The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.11k stars 588 forks source link

Unable to restart without re-authentication #2665

Closed alexanderoskin closed 2 years ago

alexanderoskin commented 2 years ago

Are you using the latest version of the library?

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Business account

Mode

My own code

Current Behavior

When I start a new session with a new ID it works at the first start but when I close it and restart I'm asked to re-authenticate again (like the first time). If I scan new generated QR the result would be: OPEN-WA ready for account: __NA. Until I delete the IGNORE* folder. After folder deleted I can to authenticate succesfully with new QR.

Expected Behavior

Auth Session keeped. Session restart without new QR or IGNORE* folder delete.

Steps To Reproduce

  1. run a simple script and authenticate
  2. restart the script
  3. (bug) need to authenticate again

create() code OR full CLI command + CONFIG

create({
multiDevice: True,
useChrome: True,
licenseKey: *,
sessionData: {"WABrowserId": "\"YlDx2aqzCvlQM54VocoFzw==\""},
authTimeout: 60,
blockCrashLogs: true,
disableSpins: true,
headless: true,
logConsole: false,
popup: false,
qrTimeout: 60,
qrLogSkip: true,
sessionId: 1,
skipSessionSave: true,
killProcessOnBrowserClose: true,
killProcessOnTimeout: true,
})

DEBUG INFO

{
  "WA_VERSION": "2.2212.8",
  "WA_AUTOMATE_VERSION": "4.35.6",
  "BROWSER_VERSION": "HeadlessChrome/100.0.4889.0",
  "START_TS": 1650084740852,
  "RAM_INFO": "Total: 8.59 GB | Free: 0.09 GB",
  "LATEST_VERSION": true,
  "CLI": false
}

Environment

- OS: macOS
- Node: 17.8.0
- npm: 8.5.5

and

- OS: Ubuntu 20.04
- Node: 17.7.1
- npm: 8.5.4

Screenshots/Logs

No response

Anything else?

No response

marcogaruthix commented 2 years ago

I'm experiencing the same behavior here, my config:

client = await create({ multiDevice: true, headless: HEADLESS, qrTimeout: 0, blockAssets: true, authTimeout: 0, callTimeout: 0, qrLogSkip: true, disableSpins: true });

smashah commented 2 years ago

@alexanderoskin you should leave the session running for a few minutes before and send some messages back and forth before closing and restarting the session.

If this is continuing then i need the verbose logs.

Add this to your config for verbose logging:

"logging":[{"type":"console}]

paste the logs here then

alexanderoskin commented 2 years ago

@smashah session restart failed after session running for a few minutes, hours or days. So that's not the problem.

Below the console output with "logging":[{"type":"console}] when I try to restart the session.

info: Set up logging for console  {"timestamp":"2022-04-17T09:46:08.678Z"}
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                                                                                                   ┃
┃   @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      ┃
┃                                                                                                   ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
info: RAM INFO Total: 8.59 GB | Free: 0.11 GB {"timestamp":"2022-04-17T09:46:08.748Z"}
- Starting
info: Starting  {"data":"Starting","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:08.749Z"}
- Version: 4.35.6
info: Version: 4.35.6  {"data":"Version: 4.35.6","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:08.749Z"}
- Initializing WA
info: Initializing WA  {"data":"Initializing WA","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:08.749Z"}
info: SCRIPT READY: qr.min.js 18603 {"timestamp":"2022-04-17T09:46:08.752Z"}
info: SCRIPT READY: base64.js 4173 {"timestamp":"2022-04-17T09:46:08.752Z"}
info: SCRIPT READY: jsSha.min.js 8982 {"timestamp":"2022-04-17T09:46:08.752Z"}
info: SCRIPT READY: hash.js 34983 {"timestamp":"2022-04-17T09:46:08.753Z"}
info: SCRIPT READY: launch.js 65074 {"timestamp":"2022-04-17T09:46:08.753Z"}
info: SCRIPT READY: wapi.js 79911 {"timestamp":"2022-04-17T09:46:08.753Z"}
- Launching Browser
info: Launching Browser  {"data":"Launching Browser","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:08.753Z"}
- Browser launched: 1465ms
info: Browser launched: 1465ms  {"data":"Browser launched: 1465ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.219Z"}
- Setting Up Page
info: Setting Up Page  {"data":"Setting Up Page","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.455Z"}
- Loading session data
info: Loading session data  {"data":"Loading session data","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.456Z"}
- No session data file found for session : 1
info: No session data file found for session : 1  {"data":"No session data file found for session : 1","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.457Z"}
- Existing session data detected. Injecting...
info: Existing session data detected. Injecting...  {"data":"Existing session data detected. Injecting...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.457Z"}
- Existing session data injected
info: Existing session data injected  {"data":"Existing session data injected","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.458Z"}
- Pre page launch setup complete: 3ms
info: Pre page launch setup complete: 3ms  {"data":"Pre page launch setup complete: 3ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.458Z"}
- Navigating to WA
info: Navigating to WA  {"data":"Navigating to WA","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:10.458Z"}
info: FRAME NAV, https://web.whatsapp.com/, false {"timestamp":"2022-04-17T09:46:10.855Z"}
info: saving valid page to dumb cache {"timestamp":"2022-04-17T09:46:10.861Z"}
- Page loaded in 1611ms: 200
info: Page loaded in 1611ms: 200  {"data":"Page loaded in 1611ms: 200","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.069Z"}
- Page loaded
info: Page loaded  {"data":"Page loaded","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.070Z"}
- Debug info: {
  "WA_VERSION": "2.2212.8",
  "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.4889.0",
  "OS": "macOS",
  "START_TS": 1650188772078,
  "RAM_INFO": "Total: 8.59 GB | Free: 0.11 GB"
}
info: Debug info: {
  "WA_VERSION": "2.2212.8",
  "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",
  ...[TRUNCATED]... {"data":"Debug info: {\n  \"WA_VERSION\": \"2.2212.8\",\n  \"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\",\n  ...[TRUNCATED]...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.185Z"}
- 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.8%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.35.6%22,%0A%20%20%22BROWSER_VERSION%22:%20%22HeadlessChrome/100.0.4889.0%22,%0A%20%20%22START_TS%22:%201650188772078,%0A%20%20%22RAM_INFO%22:%20%22Total:%208.59%20GB%20%7C%20Free:%200.11%20GB%22,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20false%0A%7D&enviro=-%20OS:%20macOS%0A-%20Node:%2017.8.0%0A-%20npm:%208.5.5&labels=Legacy
info: 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.8%22,%0A%20%20%22W...[TRUNCATED]... {"data":"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.8%22,%0A%20%20%22W...[TRUNCATED]...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.432Z"}
- Time to injection: 358ms
info: Time to injection: 358ms  {"data":"Time to injection: 358ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.432Z"}
- Injecting api
info: Injecting api  {"data":"Injecting api","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.432Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.432Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-17T09:46:12.433Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-17T09:46:12.433Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-17T09:46:12.433Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-17T09:46:12.433Z"}
- Base inject: 6ms
info: Base inject: 6ms  {"data":"Base inject: 6ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.439Z"}
info: WAPI CHECK: false {"timestamp":"2022-04-17T09:46:12.441Z"}
info: GET SCRIPT: wapi.js 79911 {"timestamp":"2022-04-17T09:46:12.441Z"}
- WAPI inject: 139ms
info: WAPI inject: 139ms  {"data":"WAPI inject: 139ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.580Z"}
- Checking session integrity
info: Checking session integrity  {"data":"Checking session integrity","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.580Z"}
- Session integrity check passed
info: Session integrity check passed  {"data":"Session integrity check passed","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.600Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-17T09:46:12.600Z"}
- Launch inject: 254ms
info: Launch inject: 254ms  {"data":"Launch inject: 254ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.854Z"}
- WAPI injected
info: WAPI injected  {"data":"WAPI injected","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.854Z"}
- Authenticating
info: Authenticating  {"data":"Authenticating","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:12.854Z"}
- Authenticate to continue
info: Authenticate to continue  {"data":"Authenticate to continue","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:46.629Z"}
- First QR: 36539 ms
info: First QR: 36539 ms  {"data":"First QR: 36539 ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-17T09:46:46.758Z"}
info: 1@mkB4SRFXenj9j22upCuS84O9xSjlmDBkAJjjNx1H88h46aTPzm/rgEMMkZ0/Miu9E0OOqw8IoGA8bQ==,iGxP5liO9pFCd6jeq3wnZoDB4jYXLOKW5CNNdrXutCg=,unK2NsXPcsL4ts2wialigA==  {"data":"1@mkB4SRFXenj9j22upCuS84O9xSjlmDBkAJjjNx1H88h46aTPzm/rgEMMkZ0/Miu9E0OOqw8IoGA8bQ==,iGxP5liO9pFCd6jeq3wnZoDB4jYXLOKW5CNNdrXutCg=,unK2NsXPcsL4ts2wialigA==","eventName":"qrData.1","eventNamespace":"qrData","sessionId":"1","timestamp":"2022-04-17T09:46:46.758Z"}
New QR Code generated. Not printing in console because qrLogSkip is set to true
info: New QR Code generated. Not printing in console because qrLogSkip is set to true {"timestamp":"2022-04-17T09:46:46.758Z"}
info: Waiting for internal QR renderer to load {"timestamp":"2022-04-17T09:46:46.758Z"}
info: Internal QR renderer loaded in 2 ms {"timestamp":"2022-04-17T09:46:46.761Z"}
info: 1@ohd3iK1QxdkElaPcnFSWixtAVt9AczmdMqgQAu6NezQgSCF+cCcRTPsb4qCsUHSEbbxDzxlpGd5luA==,iGxP5liO9pFCd6jeq3wnZoDB4jYXLOKW5CNNdrXutCg=,unK2NsXPcsL4ts2wialigA==  {"data":"1@ohd3iK1QxdkElaPcnFSWixtAVt9AczmdMqgQAu6NezQgSCF+cCcRTPsb4qCsUHSEbbxDzxlpGd5luA==,iGxP5liO9pFCd6jeq3wnZoDB4jYXLOKW5CNNdrXutCg=,unK2NsXPcsL4ts2wialigA==","eventName":"qrData.1","eventNamespace":"qrData","sessionId":"1","timestamp":"2022-04-17T09:47:06.149Z"}
New QR Code generated. Not printing in console because qrLogSkip is set to true
info: New QR Code generated. Not printing in console because qrLogSkip is set to true {"timestamp":"2022-04-17T09:47:06.151Z"}
smashah commented 2 years ago

@alexanderoskin why are you using True and not true? This isn't valid js.

CleanShot 2022-04-18 at 07 09 01@2x

change:

multiDevice: True,
useChrome: True,

to

multiDevice: true,
useChrome: true,
alexanderoskin commented 2 years ago

@alexanderoskin why are you using True and not true? This isn't valid js.

CleanShot 2022-04-18 at 07 09 01@2x

change:

multiDevice: True,
useChrome: True,

to

multiDevice: true,
useChrome: true,

Yes, I copied this part from our python backend because some config settings come from backend during session init. But to WA this settings come to WA as correctly json encoded. So during WA session init everything correct with that. So it's not the issue, too(

alexanderoskin commented 2 years ago

@alexanderoskin why are you using True and not true? This isn't valid js.

CleanShot 2022-04-18 at 07 09 01@2x

change:

multiDevice: True,
useChrome: True,

to

multiDevice: true,
useChrome: true,

I have noticed that when we use MD session we need to scan QR code twice during first authentication. We scan first QR code and immediately second QR code generated and only after scan this second QR we are successfully pass authentication. There was no such behavior during the normal WA session.

smashah commented 2 years ago

@alexanderoskin the fact that you get two different sizes for qr code means that you're not use the multi device configuration.

Normal WA WEB will first emit the legacy qr, once you scan that with an MD host account, wa web realizes that the account is MD then shows you a different qr code with more data, thus larger.

Setting multiDevice:true in the config tells wa web on boot to show the right (larger) qr code from the start.

Please screenshot your config and paste it directly from your code.

Otherwise use

> npx @open-wa/wa-automate@latest --verbose --debug --disable-spins --multi-device

And the paste the logs here.

Based on the logs you provided, MD is not set in config.

Also, don't use a number for the session Id, use a distinctive string, e.g "session-1".

alexanderoskin commented 2 years ago

Yes @smashah you are right. Absolutely shameful mistake on our part. During the first session init our backend is send multiDevice: true, useChrome: true settings and the session is initialized successfully. But when we restart the session our backend is omit multiDevice: true, useChrome: true so the session is not initialized correctly and we need to re-authenticate. So now we hardcoded this settings as all sessions now are MD and every session now restarts successfully.

But we still need to scan QR twice during initial session authentication.

Π‘Π½ΠΈΠΌΠΎΠΊ экрана 2022-04-18 Π² 13 43 36

...config is replaced by licenseKey and sessionData keys.

Full log of initial authentication is below.

info: Set up logging for console  {"timestamp":"2022-04-18T10:55:15.520Z"}
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃                                                                                                   ┃
┃   @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      ┃
┃                                                                                                   ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
info: RAM INFO Total: 8.59 GB | Free: 0.07 GB {"timestamp":"2022-04-18T10:55:15.601Z"}
- Starting
info: Starting  {"data":"Starting","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:15.602Z"}
- Version: 4.35.6
info: Version: 4.35.6  {"data":"Version: 4.35.6","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:15.602Z"}
- Initializing WA
info: Initializing WA  {"data":"Initializing WA","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:15.602Z"}
info: SCRIPT READY: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:15.608Z"}
info: SCRIPT READY: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:15.609Z"}
info: SCRIPT READY: hash.js 34983 {"timestamp":"2022-04-18T10:55:15.609Z"}
info: SCRIPT READY: launch.js 65074 {"timestamp":"2022-04-18T10:55:15.609Z"}
info: SCRIPT READY: wapi.js 79911 {"timestamp":"2022-04-18T10:55:15.609Z"}
info: SCRIPT READY: base64.js 4173 {"timestamp":"2022-04-18T10:55:15.609Z"}
- Launching Browser
info: Launching Browser  {"data":"Launching Browser","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:15.610Z"}
- MD Enabled, turning off incognito mode.
info: MD Enabled, turning off incognito mode.  {"data":"MD Enabled, turning off incognito mode.","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.336Z"}
- Data dir: ./_IGNORE_1
info: Data dir: ./_IGNORE_1  {"data":"Data dir: ./_IGNORE_1","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.337Z"}
- Data dir doesnt exist, creating...: ./_IGNORE_1
info: Data dir doesnt exist, creating...: ./_IGNORE_1  {"data":"Data dir doesnt exist, creating...: ./_IGNORE_1","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.337Z"}
- Browser launched: 3156ms
info: Browser launched: 3156ms  {"data":"Browser launched: 3156ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.766Z"}
- Setting Up Page
info: Setting Up Page  {"data":"Setting Up Page","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.816Z"}
- Loading session data
info: Loading session data  {"data":"Loading session data","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.817Z"}
- No session data file found for session : 1
info: No session data file found for session : 1  {"data":"No session data file found for session : 1","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.817Z"}
- multi-device enabled. Session data skipped...
info: multi-device enabled. Session data skipped...  {"data":"multi-device enabled. Session data skipped...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.818Z"}
- Existing session data injected
info: Existing session data injected  {"data":"Existing session data injected","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.818Z"}
- Pre page launch setup complete: 2ms
info: Pre page launch setup complete: 2ms  {"data":"Pre page launch setup complete: 2ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.818Z"}
- Navigating to WA
info: Navigating to WA  {"data":"Navigating to WA","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:18.818Z"}
info: FRAME NAV, https://web.whatsapp.com/, false {"timestamp":"2022-04-18T10:55:19.459Z"}
info: saving valid page to dumb cache {"timestamp":"2022-04-18T10:55:19.462Z"}
- Page loaded in 1379ms: 200
info: Page loaded in 1379ms: 200  {"data":"Page loaded in 1379ms: 200","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.197Z"}
- Page loaded
info: Page loaded  {"data":"Page loaded","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.198Z"}
- Debug info: {
  "WA_VERSION": "2.2212.8",
  "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": "macOS",
  "START_TS": 1650279320200,
  "RAM_INFO": "Total: 8.59 GB | Free: 0.07 GB"
}
info: Debug info: {
  "WA_VERSION": "2.2212.8",
  "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",
  ...[TRUNCATED]... {"data":"Debug info: {\n  \"WA_VERSION\": \"2.2212.8\",\n  \"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\",\n  ...[TRUNCATED]...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.548Z"}
- 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.8%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:%201650279320200,%0A%20%20%22RAM_INFO%22:%20%22Total:%208.59%20GB%20%7C%20Free:%200.07%20GB%22,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20false%0A%7D&enviro=-%20OS:%20macOS%0A-%20Node:%2017.8.0%0A-%20npm:%208.5.5&labels=MD
info: 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.8%22,%0A%20%20%22W...[TRUNCATED]... {"data":"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.8%22,%0A%20%20%22W...[TRUNCATED]...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.936Z"}
- Time to injection: 738ms
info: Time to injection: 738ms  {"data":"Time to injection: 738ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.936Z"}
- Injecting api
info: Injecting api  {"data":"Injecting api","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.936Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.936Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:20.937Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:20.937Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:20.937Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:20.937Z"}
- Base inject: 5ms
info: Base inject: 5ms  {"data":"Base inject: 5ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:20.942Z"}
info: WAPI CHECK: false {"timestamp":"2022-04-18T10:55:20.946Z"}
info: GET SCRIPT: wapi.js 79911 {"timestamp":"2022-04-18T10:55:20.946Z"}
- WAPI inject: 65ms
info: WAPI inject: 65ms  {"data":"WAPI inject: 65ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.011Z"}
- Checking session integrity
info: Checking session integrity  {"data":"Checking session integrity","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.011Z"}
- Session integrity check passed
info: Session integrity check passed  {"data":"Session integrity check passed","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.015Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:21.015Z"}
- Launch inject: 137ms
info: Launch inject: 137ms  {"data":"Launch inject: 137ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.153Z"}
- WAPI injected
info: WAPI injected  {"data":"WAPI injected","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.153Z"}
- Authenticating
info: Authenticating  {"data":"Authenticating","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.153Z"}
- Authenticate to continue
info: Authenticate to continue  {"data":"Authenticate to continue","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.182Z"}
- First QR: 2482 ms
info: First QR: 2482 ms  {"data":"First QR: 2482 ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:21.247Z"}
info: 1@xscAFowMMnotEmX7+oOXNAzlDadCWSXvFGZy7NtKX9qQQVFKphXUnnCObQb/qsY0txq3Ti/cgLdWrA==,CAdZR+Vytte+/w2/b8IsmBYl/1aXr+SrVT2hDpCOA2I=,0guCTaV4nYwmJBk5i6q5/Q==  {"data":"1@xscAFowMMnotEmX7+oOXNAzlDadCWSXvFGZy7NtKX9qQQVFKphXUnnCObQb/qsY0txq3Ti/cgLdWrA==,CAdZR+Vytte+/w2/b8IsmBYl/1aXr+SrVT2hDpCOA2I=,0guCTaV4nYwmJBk5i6q5/Q==","eventName":"qrData.1","eventNamespace":"qrData","sessionId":"1","timestamp":"2022-04-18T10:55:21.248Z"}
New QR Code generated. Not printing in console because qrLogSkip is set to true
info: New QR Code generated. Not printing in console because qrLogSkip is set to true {"timestamp":"2022-04-18T10:55:21.248Z"}
info: Waiting for internal QR renderer to load {"timestamp":"2022-04-18T10:55:21.248Z"}
info: Internal QR renderer loaded in 1 ms {"timestamp":"2022-04-18T10:55:21.249Z"}
info: 2@ascUMEzIl/LL/c4YIOpqNeJhmew/nCDJr3+kcojpLzEJ2WNjSBaMndaSOZRGu1V4IcQKCB4AOfCyGA==,sz8Pfxpycms/LKNyMsctm3ZFLeQJbmVTWDgMu5uJvhw=,duLVxoiXwCZfgVG25GBo8qrFph19f+cqgco+p8d1A3A=,WUAng1dKb5VhjovsARtEaNRZfF...[TRUNCATED]... {"data":"2@ascUMEzIl/LL/c4YIOpqNeJhmew/nCDJr3+kcojpLzEJ2WNjSBaMndaSOZRGu1V4IcQKCB4AOfCyGA==,sz8Pfxpycms/LKNyMsctm3ZFLeQJbmVTWDgMu5uJvhw=,duLVxoiXwCZfgVG25GBo8qrFph19f+cqgco+p8d1A3A=,WUAng1dKb5VhjovsARtEaNRZfF...[TRUNCATED]...","eventName":"qrData.1","eventNamespace":"qrData","sessionId":"1","timestamp":"2022-04-18T10:55:26.288Z"}
New QR Code generated. Not printing in console because qrLogSkip is set to true
info: New QR Code generated. Not printing in console because qrLogSkip is set to true {"timestamp":"2022-04-18T10:55:26.288Z"}
info: AUTH.1  {"data":true,"eventName":"AUTH.1","eventNamespace":"AUTH","sessionId":"1","timestamp":"2022-04-18T10:55:30.593Z"}
info: AUTH.1  {"data":true,"eventName":"AUTH.1","eventNamespace":"AUTH","sessionId":"1","timestamp":"2022-04-18T10:55:30.593Z"}
info: AUTH.1  {"data":true,"eventName":"AUTH.1","eventNamespace":"AUTH","sessionId":"1","timestamp":"2022-04-18T10:55:30.593Z"}
info: AUTH.1  {"data":true,"eventName":"AUTH.1","eventNamespace":"AUTH","sessionId":"1","timestamp":"2022-04-18T10:55:30.593Z"}
info: AUTH.1  {"data":true,"eventName":"AUTH.1","eventNamespace":"AUTH","sessionId":"1","timestamp":"2022-04-18T10:55:30.593Z"}
- Multi device support for this project is EXPERIMENTAL. Some things may not work....
info: Multi device support for this project is EXPERIMENTAL. Some things may not work....  {"data":"Multi device support for this project is EXPERIMENTAL. Some things may not work....","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.866Z"}
info: successfulScan  {"data":"successfulScan","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.989Z"}
- Multi device support for this project is EXPERIMENTAL. Some things may not work....
info: SUCCESS  {"data":"SUCCESS","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.989Z"}
- Reinjecting api
info: Reinjecting api  {"data":"Reinjecting api","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.989Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.989Z"}
info: FRAME NAV, https://web.whatsapp.com/, webpackChunkwhatsapp_web_client {"timestamp":"2022-04-18T10:55:34.996Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:34.996Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:34.999Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:34.999Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:34.999Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:34.999Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:35.010Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:35.010Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:35.010Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:35.010Z"}
- Base inject: 17ms
info: Base inject: 17ms  {"data":"Base inject: 17ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.016Z"}
- Base inject: 9ms
info: Base inject: 9ms  {"data":"Base inject: 9ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.018Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:35.028Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:35.030Z"}
- Launch inject: 136ms
info: Launch inject: 136ms  {"data":"Launch inject: 136ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.165Z"}
- WAPI Reinjected
info: WAPI Reinjected  {"data":"WAPI Reinjected","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.165Z"}
- Checking if session is valid
info: Checking if session is valid  {"data":"Checking if session is valid","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.165Z"}
- Launch inject: 216ms
info: Launch inject: 216ms  {"data":"Launch inject: 216ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.246Z"}
- Downloading patches from https://cdn.openwa.dev/patches.json
info: Downloading patches from https://cdn.openwa.dev/patches.json  {"data":"Downloading patches from https://cdn.openwa.dev/patches.json","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.256Z"}
- Client is ready
info: Client is ready  {"data":"Client is ready","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.283Z"}
- Downloaded patches in 0.518s
info: Downloaded patches in 0.518s  {"data":"Downloaded patches in 0.518s","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.774Z"}
- Installing patches
info: Installing patches  {"data":"Installing patches","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.774Z"}
- Patches Installed: 1ed99
info: Patches Installed: 1ed99  {"data":"Patches Installed: 1ed99","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.879Z"}
info: DebugInfo.1  {"data":{"BROWSER_VERSION":"HeadlessChrome/100.0.4896.88","CLI":false,"LATEST_VERSION":true,"LAUNCH_TIME_MS":20401,"NUM":"1000","NUM_HASH":"24a650bb6b860c92057df1ea759fdddd","OS":"macOS","OW_KEY":"a73c97fdbc856cff791c10b05b9b3adadcdf62d051c12ec52e6b127fe6d9d636","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","RAM_INFO":"Total: 8.59 GB | Free: 0.07 GB","START_TS":1650279320200,"WA_AUTOMATE_VERSION":"4.35.6","WA_VERSION":"2.2212.8"},"eventName":"DebugInfo.1","eventNamespace":"DebugInfo","sessionId":"1","timestamp":"2022-04-18T10:55:35.917Z"}
- Client loaded for normal account [MD] with 658 contacts, 312 chats & 726 messages in 20.401s
info: Client loaded for normal account [MD] with 658 contacts, 312 chats & 726 messages in 20.401s  {"data":"Client loaded for normal account [MD] with 658 contacts, 312 chats & 726 messages in 20.401s","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:35.935Z"}
- Finalizing web session...
info: Finalizing web session...  {"data":"Finalizing web session...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:36.055Z"}
- Finalizing client...
info: Finalizing client...  {"data":"Finalizing client...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:36.104Z"}
info: IN f2aa6  {"_method":[],"funcName":"onMessage","timestamp":"2022-04-18T10:55:36.105Z"}
info: IN 37623  {"_method":[],"funcName":"onAnyMessage","timestamp":"2022-04-18T10:55:36.105Z"}
info: IN 0b934  {"_method":[],"funcName":"onMessageDeleted","timestamp":"2022-04-18T10:55:36.105Z"}
info: IN fcca4  {"_method":[],"funcName":"onAck","timestamp":"2022-04-18T10:55:36.105Z"}
info: IN 40574  {"_method":[],"funcName":"onAddedToGroup","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN 1484c  {"_method":[],"funcName":"onChatDeleted","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN 091f2  {"_method":[],"funcName":"onBattery","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN c0a18  {"_method":[],"funcName":"onChatOpened","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN 92bcc  {"_method":[],"funcName":"onIncomingCall","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN a9b3f  {"_method":[],"funcName":"onGlobalParticipantsChanged","timestamp":"2022-04-18T10:55:36.106Z"}
info: IN 19f50  {"_method":[],"funcName":"onChatState","timestamp":"2022-04-18T10:55:36.106Z"}
info: setting page listener: framenavigated  {"0":"framenavigated","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN c264c  {"_method":[],"funcName":"onPlugged","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN 4351d  {"_method":[],"funcName":"onStateChanged","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN ec091  {"_method":[],"funcName":"onButton","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN ef783  {"_method":[],"funcName":"onStory","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN 82177  {"_method":[],"funcName":"onRemovedFromGroup","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN ce42b  {"_method":[],"funcName":"onOrder","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN 15e73  {"_method":[],"funcName":"onNewProduct","timestamp":"2022-04-18T10:55:36.107Z"}
info: IN 53c21  {"_method":[],"funcName":"onReaction","timestamp":"2022-04-18T10:55:36.107Z"}
info: OUT f2aa6: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.114Z"}
info: OUT 37623: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.115Z"}
info: OUT 0b934: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.115Z"}
info: OUT fcca4: 11ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 40574: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 1484c: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 091f2: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT c0a18: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 92bcc: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT a9b3f: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 19f50: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT c264c: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 4351d: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT ec091: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT ef783: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT 82177: 9ms  {"res":false,"timestamp":"2022-04-18T10:55:36.116Z"}
info: OUT ce42b: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.117Z"}
info: OUT 15e73: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.117Z"}
info: OUT 53c21: 10ms  {"res":false,"timestamp":"2022-04-18T10:55:36.117Z"}
info: IN e9059  {"_method":[],"funcName":"onMessage","timestamp":"2022-04-18T10:55:36.126Z"}
info: IN 2dc95  {"_method":[],"funcName":"onAnyMessage","timestamp":"2022-04-18T10:55:36.126Z"}
info: IN 27104  {"_method":[],"funcName":"onMessageDeleted","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN ba8b3  {"_method":[],"funcName":"onAck","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN 60941  {"_method":[],"funcName":"onAddedToGroup","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN 970a3  {"_method":[],"funcName":"onChatDeleted","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN c7dfe  {"_method":[],"funcName":"onBattery","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN 65477  {"_method":[],"funcName":"onChatOpened","timestamp":"2022-04-18T10:55:36.127Z"}
info: IN 57bdb  {"_method":[],"funcName":"onIncomingCall","timestamp":"2022-04-18T10:55:36.127Z"}
info: OUT e9059: 2ms  {"res":true,"timestamp":"2022-04-18T10:55:36.128Z"}
info: IN b54d6  {"_method":[],"funcName":"onGlobalParticipantsChanged","timestamp":"2022-04-18T10:55:36.128Z"}
info: IN f8fbc  {"_method":[],"funcName":"onChatState","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN 772bd  {"_method":[],"funcName":"onPlugged","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN d2ce4  {"_method":[],"funcName":"onStateChanged","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN f5c1f  {"_method":[],"funcName":"onButton","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN f8723  {"_method":[],"funcName":"onStory","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN fef84  {"_method":[],"funcName":"onRemovedFromGroup","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN 443d3  {"_method":[],"funcName":"onOrder","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN 2c5c4  {"_method":[],"funcName":"onNewProduct","timestamp":"2022-04-18T10:55:36.129Z"}
info: IN 581d3  {"_method":[],"funcName":"onReaction","timestamp":"2022-04-18T10:55:36.129Z"}
info: OUT 2dc95: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.131Z"}
info: OUT 27104: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT ba8b3: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT 60941: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT 970a3: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT c7dfe: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT 65477: 5ms  {"res":false,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT 57bdb: 5ms  {"res":true,"timestamp":"2022-04-18T10:55:36.132Z"}
info: OUT f8fbc: 66ms  {"res":false,"timestamp":"2022-04-18T10:55:36.195Z"}
info: OUT 772bd: 66ms  {"res":true,"timestamp":"2022-04-18T10:55:36.195Z"}
info: OUT d2ce4: 66ms  {"res":true,"timestamp":"2022-04-18T10:55:36.195Z"}
info: OUT f5c1f: 66ms  {"res":true,"timestamp":"2022-04-18T10:55:36.195Z"}
info: OUT f8723: 66ms  {"res":false,"timestamp":"2022-04-18T10:55:36.195Z"}
info: OUT fef84: 67ms  {"res":false,"timestamp":"2022-04-18T10:55:36.196Z"}
info: OUT 443d3: 86ms  {"res":"ERROR: Join the Insiders Program to get access to this feature => https://get.openwa.dev/l/79263081000?v=i ","timestamp":"2022-04-18T10:55:36.215Z"}
info: OUT 2c5c4: 104ms  {"res":"ERROR: Join the Insiders Program to get access to this feature => https://get.openwa.dev/l/79263081000?v=i ","timestamp":"2022-04-18T10:55:36.233Z"}
info: OUT 581d3: 122ms  {"res":"ERROR: Join the Insiders Program to get access to this feature => https://get.openwa.dev/l/79263081000?v=i ","timestamp":"2022-04-18T10:55:36.251Z"}
info: FRAME NAV, https://web.whatsapp.com/, webpackChunkwhatsapp_web_client {"timestamp":"2022-04-18T10:55:37.141Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.142Z"}
info: FRAME NAV, https://web.whatsapp.com/, webpackChunkwhatsapp_web_client {"timestamp":"2022-04-18T10:55:37.142Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.143Z"}
info: FRAME NAV, https://web.whatsapp.com/, webpackChunkwhatsapp_web_client {"timestamp":"2022-04-18T10:55:37.145Z"}
- Injecting scripts
info: Injecting scripts  {"data":"Injecting scripts","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.145Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:37.146Z"}
info: GET SCRIPT: jsSha.min.js 8982 {"timestamp":"2022-04-18T10:55:37.148Z"}
info: GET SCRIPT: qr.min.js 18603 {"timestamp":"2022-04-18T10:55:37.148Z"}
info: GET SCRIPT: base64.js 4173 {"timestamp":"2022-04-18T10:55:37.148Z"}
info: GET SCRIPT: hash.js 34983 {"timestamp":"2022-04-18T10:55:37.148Z"}
- Base inject: 3ms
info: Base inject: 3ms  {"data":"Base inject: 3ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.149Z"}
- Base inject: 18ms
info: Base inject: 18ms  {"data":"Base inject: 18ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.163Z"}
- Base inject: 17ms
info: Base inject: 17ms  {"data":"Base inject: 17ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.164Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:37.167Z"}
- Launch inject: 40ms
info: Launch inject: 40ms  {"data":"Launch inject: 40ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.207Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:37.208Z"}
info: GET SCRIPT: launch.js 65074 {"timestamp":"2022-04-18T10:55:37.208Z"}
- Launch inject: 35ms
info: Launch inject: 35ms  {"data":"Launch inject: 35ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.243Z"}
- Launch inject: 70ms
info: Launch inject: 70ms  {"data":"Launch inject: 70ms","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:37.278Z"}
info: OUT b54d6: 3919ms  {"res":true,"timestamp":"2022-04-18T10:55:40.047Z"}
info: LOADED  {"timestamp":"2022-04-18T10:55:40.161Z"}
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                       β”‚
β”‚   Use the link below to easily report issues:πŸ‘‡πŸ‘‡πŸ‘‡   β”‚
β”‚                                                       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
- 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.8%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:%201650279320200,%0A%20%20%22RAM_INFO%22:%20%22Total:%208.59%20GB%20%7C%20Free:%200.07%20GB%22,%0A%20%20%22LATEST_VERSION%22:%20true,%0A%20%20%22CLI%22:%20false,%0A%20%20%22LAUNCH_TIME_MS%22:%2020401,%0A%20%20%22ACC_TYPE%22:%20%22PERSONAL%22,%0A%20%20%22chats%22:%20312,%0A%20%20%22messages%22:%20726,%0A%20%20%22contacts%22:%20658,%0A%20%20%22isMd%22:%20true,%0A%20%20%22INSTANCE_ID%22:%20%2240e1831c-9954-444a-9488-aef8d4317fcc%22%0A%7D&enviro=-%20OS:%20macOS%0A-%20Node:%2017.8.0%0A-%20npm:%208.5.5&labels=MD,PHA
info: 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.8%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.35.6%22,%0A%20%20%22...[TRUNCATED]... {"data":"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.8%22,%0A%20%20%22WA_AUTOMATE_VERSION%22:%20%224.35.6%22,%0A%20%20%22...[TRUNCATED]...","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:40.440Z"}
- πŸš€ @OPEN-WA ready for account: 1000
info: πŸš€ @OPEN-WA ready for account: 1000  {"data":"πŸš€ @OPEN-WA ready for account: 1000","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:40.441Z"}
info: SUCCESS  {"data":"SUCCESS","eventName":"STARTUP.1","eventNamespace":"STARTUP","sessionId":"1","timestamp":"2022-04-18T10:55:40.441Z"}
smashah commented 2 years ago

@alexanderoskin Glad it's working for you now.

There's a little documented feature of open-wa that will check if you have a corresponding IGNORE_ folder and then turn on multiDevice just incase there's no way to tell if a user is using a MD session.

by setting the environment variable:

AUTO_MD=true

If you set auto_md but not multiDevice: true in the config, then you will get the 2-qr code behaviour, but atleast there's a backup check just in case you forget to set the config.