pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.05k stars 3.58k forks source link

Nothing happens after scanning the QR Code #2437

Closed mmaeffert closed 1 year ago

mmaeffert commented 1 year ago

Is there an existing issue for this?

Describe the bug

Whenever I start whatsapp-web.js on any machine, on any server, with any code, on any architecture, on any OS, I scan the QR code and after that nothing happens. Whatsapp tells me it is connected, but the console window, the logs, the journalctl output is showing no sign of life. I tried several projects I had from even month ago, where I changed nothing. I even changed my phone, phone number and network.

Expected behavior

"Client is ready" and further logging of messages

Steps to Reproduce the Bug or Issue

  1. node index.js
  2. Scan QR Code

Relevant Code

const { Client } = require('whatsapp-web.js');
const qrcode = require('qrcode-terminal');
const client = new Client({

})
client.on('qr', qr => {
    qrcode.generate(qr, {small: true});
});

client.on('ready', () => {
    console.log('Client is ready!');
});

client.on('message', message => {
        console.log(message.body);
});

client.initialize();

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: Windows 11, Ubuntu 20.0.4 Phone: Android (tried on two different phones Whattsapp-web.js version: Tried many of them NodeJS Version: Also tried many of those

Additional context

Issue started to happen a couple of days ago

brunoinds commented 1 year ago

I'm experiencing the same error. 2 days ago, the event "ready" is not being fired anymore...

parzival-hub commented 1 year ago

Same error here. The connection doesn't work anymore.

giacas commented 1 year ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

brunoinds commented 1 year ago

"whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

It works!!

JuanRa012012 commented 1 year ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

Thanks, it works for me.

mmaeffert commented 1 year ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

Worked for me! Don't know who @Julzk is but I owe him and @giacas one.

GustavoBazinga commented 1 year ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

Worked for me! Ty, bro.

fxwahyugomugomu commented 1 year ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

awh.. thanks.. worked for me <3

salavudeenH commented 1 year ago

Thanks it's working

FabianCaniza commented 1 year ago

tengo el mismo problema podria guiarme?

app.js: const { Client } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal'); const client = new Client(); client.on('qr', (qr) => { qrcode.generate(qr, {small: true}); }); client.on('ready', () => { console.log('Client is ready!'); }); client.initialize();

package.json: { "dependencies": { "puppeteer": "^21.2.1", "qrcode-terminal": "^0.12.0", "whatsapp-web.js": "whatsapp-web.js@1.22.2-alpha.0" }, "name": "whatest", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC", "description": "" }

image

brunoinds commented 1 year ago

tengo el mismo problema podria guiarme?

app.js: const { Client } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal'); const client = new Client(); client.on('qr', (qr) => { qrcode.generate(qr, {small: true}); }); client.on('ready', () => { console.log('Client is ready!'); }); client.initialize();

package.json: { "dependencies": { "puppeteer": "^21.2.1", "qrcode-terminal": "^0.12.0", "whatsapp-web.js": "whatsapp-web.js@1.22.2-alpha.0" }, "name": "whatest", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "author": "", "license": "ISC", "description": "" }

image

OPCIÓN 1:

  1. Intenta cambiando su archivo package.json para el siguiente:

package.json:

{
    "dependencies": {
        "puppeteer": "^21.2.1",
        "qrcode-terminal": "^0.12.0",
        "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"
    },
    "name": "whatest",
    "version": "1.0.0",
    "main": "index.js",
    "scripts": {
        "test": "echo 'Error: no test specified' && exit 1"
    },
    "author": "",
    "license": "ISC",
    "description": ""
}
  1. Y luego ejecuta el siguiente comando npm install.

OPCIÓN 2

Si caso la OPCIÓN 1 no funciona, haz los siguientes pasos:

  1. Desinstala el WhatsAppWeb.js con este comando: npm r whatsapp-web.js

  2. Añade esta linea a su package.json: "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

  3. E instala otra vez con este commando: npm install

FabianCaniza commented 1 year ago

Esto funciona también para Ubuntu 18.04?

brunoinds commented 12 months ago

Esto funciona también para Ubuntu 18.04?

It should work on Ubuntu as well. I'm using a Windows machine and everything is working just fine.

pedro-santos21 commented 11 months ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

Thank you, why dont they merge this hotfix?

EseCurtis commented 11 months ago

Same here, I've fixed with #2422 hotfix_8.

Use: npm r whatsapp-web.js

Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

And finally to use hotfix_8 npm install

God bless you!

qhoirulanwar commented 11 months ago

Same here, I've fixed with #2422 hotfix_8. Use: npm r whatsapp-web.js Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8" And finally to use hotfix_8 npm install

Thank you, why dont they merge this hotfix?

@halimbrian @AlloryDante @viniciuspereiras @viniciuspereiras @tuyuribr please approved this https://github.com/pedroslopez/whatsapp-web.js/pull/2413

AlloryDante commented 11 months ago

Same here, I've fixed with #2422 hotfix_8. Use: npm r whatsapp-web.js Then add this line to package.json "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8" And finally to use hotfix_8 npm install

Thank you, why dont they merge this hotfix?

@halimbrian @AlloryDante @viniciuspereiras @viniciuspereiras @tuyuribr please approved this #2413

I do not have access unfortunately

tuyuribr commented 11 months ago

Use version: 1.22.2-alpha.3

codeshoel commented 4 months ago

Thanks man, God bless