QRcode does not start
KinozzzFilms opened this issue Β· comments
Are you using the latest version of the library?
- I have checked and am 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?
Personal account (normal)
Mode
EASY API/CLI
Current Behavior
After running the test code, qrcode does not start
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β @open-wa/wa-automate β
β π¬ π€ The most reliable NodeJS whatsapp library for chatbots with advanced features. β
β Version: 4.71.13 β
β Check out the latest changes: https://github.com/open-wa/wa-automate-nodejs#latest-changes β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
You can also authenticate the session at: http://localhost:7000
- Starting
- Version: 4.71.13
- Initializing WA
- It is recommended to set useChrome: true or use the --use-chrome flag if you are experiencing issues with Multi device support
- Launching Browser
- MD Enabled, turning off incognito mode.
- Data dir: ./_IGNORE_COVID_HELPER
- Data dir doesnt exist, creating...: ./_IGNORE_COVID_HELPER
Expected Behavior
No response
Steps To Reproduce
const wa = require('@open-wa/wa-automate');
wa.create({
sessionId: "COVID_HELPER",
multiDevice: true, //required to enable multiDevice support
authTimeout: 60, //wait only 60 seconds to get a connection with the host account device
blockCrashLogs: true,
disableSpins: true,
headless: true,
hostNotificationLang: 'PT_BR',
logConsole: false,
popup: true,
qrTimeout: 0, //0 means it will wait forever for you to scan the qr code
}).then(client => start(client));
function start(client) {
client.onMessage(async message => {
if (message.body === 'Hi') {
await client.sendText(message.from, 'π Hello!');
}
});
}
create() code OR full CLI command + CONFIG
node test.js
DEBUG INFO
Such information does not appear
Environment
- OS: Windows 11 Pro
- Node: v20.14.0
- npm: 10.8.1
Screenshots/Logs
Anything else?
No response