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.12k stars 590 forks source link

Session gets stuck loading after QR code is scanned #3137

Open johnnydek opened 1 year ago

johnnydek commented 1 year ago

Are you using the latest version of the library?

What type of session are you experiencing this issue on?

Tested and experienced on both

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

Personal account (normal)

Mode

My own code

Current Behavior

When running my Node.js code, I scan the QR code to begin a new session. Once scanning I get the message "QR code scanned. Loading session..." and nothing happens afterwards.

This used to work perfectly. Now all of a sudden it stopped working.

Expected Behavior

No response

Steps To Reproduce

const wa = require('@open-wa/wa-automate');

wa.create({ sessionId: "TEST", // multiDevice: true, authTimeout: 60, blockCrashLogs: true, disableSpins: true, headless:'new', useChrome:true, hostNotificationLang: 'PT_BR', logConsole: false, popup: true, port: 8080, qrTimeout: 0, }).then((waClient) => { client = waClient start(client) })

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
[0]   "WA_VERSION": "2.2326.8",
[0]   "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
[0]   "WA_AUTOMATE_VERSION": "4.66.3",
[0]   "BROWSER_VERSION": "Chrome/114.0.5735.134",
[0]   "OS": "Windows 10",
[0]   "START_TS": 1687413705156,
[0]   "RAM_INFO": "Total: 17.03 GB | Free: 7.66 GB",
[0]   "PPTR_VERSION": "19.11.1"
[0] }

Environment

- OS: Windows 10
- Node: 18.14.0
- npm: 9.3.1

Screenshots/Logs

No response

Anything else?

No response

aymenitc commented 1 year ago

me too but sadly the library is deprecated ... I hope if some experts can fork it and fix it

johnnydek commented 1 year ago

me too but sadly the library is deprecated ... I hope if some experts can fork it and fix it

You mean all support for the library was dropped? Is that why the link to the documentation no longer leads anywhere?

aymenitc commented 1 year ago

me too but sadly the library is deprecated ... I hope if some experts can fork it and fix it

You mean all support for the library was dropped? Is that why the link to the documentation no longer leads anywhere?

Screenshot_٢٠٢٣٠٦٢٢_١٣٥٩٢٥_Discord

aymenitc commented 1 year ago

Are you using the latest version of the library?

  • [x] I have checked and am using the latest version of the library.

What type of session are you experiencing this issue on?

Tested and experienced on both

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

Personal account (normal)

Mode

My own code

Current Behavior

When running my Node.js code, I scan the QR code to begin a new session. Once scanning I get the message "QR code scanned. Loading session..." and nothing happens afterwards.

This used to work perfectly. Now all of a sudden it stopped working.

Expected Behavior

No response

Steps To Reproduce

const wa = require('@open-wa/wa-automate');

wa.create({ sessionId: "TEST", // multiDevice: true, authTimeout: 60, blockCrashLogs: true, disableSpins: true, headless:'new', useChrome:true, hostNotificationLang: 'PT_BR', logConsole: false, popup: true, port: 8080, qrTimeout: 0, }).then((waClient) => { client = waClient start(client) })

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
[0]   "WA_VERSION": "2.2326.8",
[0]   "PAGE_UA": "WhatsApp/2.2147.16 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
[0]   "WA_AUTOMATE_VERSION": "4.66.3",
[0]   "BROWSER_VERSION": "Chrome/114.0.5735.134",
[0]   "OS": "Windows 10",
[0]   "START_TS": 1687413705156,
[0]   "RAM_INFO": "Total: 17.03 GB | Free: 7.66 GB",
[0]   "PPTR_VERSION": "19.11.1"
[0] }

Environment

- OS: Windows 10
- Node: 18.14.0
- npm: 9.3.1

Screenshots/Logs

No response

Anything else?

No response

while you are using Windows, have you tried to run your bot in headfull mode. I mean not use headless. please try and tell me!!