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
14.62k stars 3.48k forks source link

whatsapp web version 2.2335.6 is not running events or sending messages. #2422

Closed AbrahamHHuertaI closed 7 months ago

AbrahamHHuertaI commented 11 months ago

Is there an existing issue for this?

Describe the bug

Whatsapp web version 2.2335.6 is not running events or sending messages but Version 2.2334.12 is running normally.

Expected behavior

Both versions should execute events and send messages.

Steps to Reproduce the Bug or Issue

Run two instances one with version 2.2335.6 and one with version 2.2334.12 and version 2.2335.6 will not execute the on ready event.

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows Phone OS: Android whatsapp-web.js version 1.22.1 WhatsApp Web version 2.2335.6 Node.js Version 18

Additional context

No response

CelsoFurtunato commented 11 months ago

I had this problem today, I saw that when exposing the whatsapp api you need to add a timeout to wait until the api is fully exposed. Then you can send messages again.

agstrc commented 11 months ago

I have similar behaviour here.

Through some tests, it seems that the issue is mainly in the initialize function, which gets stuck at line 179.

Tina4545 commented 11 months ago

whats the solution , i have the same problem here

AB-70 commented 11 months ago

Replace
const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Haven't fully tested but works for now.

edergames29 commented 11 months ago

Substituir const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; por const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Não testei totalmente, mas funciona por enquanto.

what file is this code in?

brhenrique commented 11 months ago

Substituir const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; por const INTRO_IMG_SELECTOR = "[data-icon='chat']"; Não testei totalmente, mas funciona por enquanto.

what file is this code in?

https://github.com/pedroslopez/whatsapp-web.js/blob/df1b070d54ec2c4ba75d29a7ef758704ffaf0da5/src/Client.js#L175

rizki5411 commented 11 months ago

image

I got this error message on log app.

cpetrag commented 11 months ago

Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Haven't fully tested but works for now.

Works! Thanks!

Todpig commented 11 months ago

here it didn't work

Julzk commented 11 months ago

temporarily use this in your package json image "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7"

FranciscoSavastano commented 10 months ago

Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Haven't fully tested but works for now.

works!

enhessam commented 10 months ago

Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Haven't fully tested but works for now.

Thanks a lot it works 👍👍👍👍

gkp1 commented 10 months ago

temporarily use this in your package json image "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7"

This causes session to log out when restart.

Julzk commented 10 months ago

no Session lost :) "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_8"

Faolam commented 10 months ago

const INTRO_IMG_SELECTOR = "[data-icon='chat']";

yes, this works really well.

juaose commented 10 months ago

orked for me too.

Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']"; Haven't fully tested but works for now.

Works! Thanks!

Worked over here as well.

keinou commented 10 months ago

Here, works fine! Thanks!

spidermay commented 10 months ago

works really good, thnks !!!

affanhanifathtarech commented 10 months ago

it works thanks

Oladapodaniel commented 10 months ago

Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";

Haven't fully tested but works for now.

Worked like charm🔥

zfcsoftware commented 9 months ago

const INTRO_IMG_SELECTOR = "[data-icon='chat']"; this no longer works You can use it as follows const INTRO_IMG_SELECTOR = "[data-icon='menu']";