Wa-automate-nodejs: Requesting a QR CODE read again after restarting the process

Created on 20 Feb 2020  路  10Comments  路  Source: open-wa/wa-automate-nodejs

Describe the bug

After the initialization of the example code in the "demo" I can read the QR CODE. When I finish the process and open again the session is not recovered generating an error or asking for the QR CODE again.

With the new update now the QR CODE keeps asking whenever the process starts again.

Debug Info {
聽聽 WA_VERSION: '0.4.930',
聽聽 PAGE_UA: 'WhatsApp / 0.4.613 Mozilla / 5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit / 537.36 (KHTML, like Gecko) Chrome / 79.0.3945.88 Safari / 537.36',
聽聽 SULLA_HOTFIX_VERSION: '1.7.26',
聽聽 BROWSER_VERSION: 'HeadlessChrome / 80.0.3987.116'
}

Steps to Reproduce

  1. start the demo once and read the qr code
  2. end the process and start again

74687589-9c35f880-51b3-11ea-8c58-e53c2a2e763d

Requires Investigation

Most helpful comment

@smashah, Thanks! Now it's 100% functional again :)
Uhuuuullll!!!

All 10 comments

Are you using the same session name? Or aren't you disconnecting from Whatsapp web from your phone? Or using the same number for another session simultaneously?

@rafael-sarti thanks, this is much clearer. I'm actually having this problem also. IDK what's going on. What's your operating system? Also, please share your create code.

@mmc16 I'm not using two sessions :(

@smashah I'm using demo / server.js to test if the error replicates. My operating system under development is OSX Catalina and in the production environment the same problem occurs as Ubuntu 18

Update: It seems that he understands another browser not compatible at a time that returns the session. Have you tried some items? Support, does anyone know that I can recover a session?

Captura de Tela 2020-02-29 a虁s 17 53 17

I discovered something very relevant by analyzing a similar project on github. They do the session just by keeping a JSON. Inside JSON it stores the following information.

{"WABrowserId": "\" 22 \ "", "WASecretBundle": "{\" key \ ": \" 2/2 = \ ", \" encKey \ ": \" 2 + 2 = \ ", \ "macKey \": \ "2/2 = \"} "," WAToken1 ":" \ "2 + 2/2 = \" "," WAToken2 ":" \ "1 @ / 2 + 2 == \" "}

Logically my data changed to number 2. Only with an inject is it possible to return to the session. See if this is evidence who understands the project better.

@smashah

@rafael-sarti can you provide a link to that, please

image

@rafael-sarti You're the MVP for the day. With your clue I was able to fix this issue. Thanks.

@smashah, Thanks! Now it's 100% functional again :)
Uhuuuullll!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phantom-limb picture phantom-limb  路  5Comments

pedrogrisolia picture pedrogrisolia  路  4Comments

renato-macedo picture renato-macedo  路  6Comments

arisros picture arisros  路  4Comments

jersonjunior picture jersonjunior  路  6Comments