#AFTER QR CODE SCAN , on('ready') EVENT NOT FIRING.

1 messages · Page 1 of 1 (latest)

proven river
#

When trying to login web whatsapp , the console hangs after authentication events , the console doesnt recieves any messages but the notification sound is coming from system. The console proceed further once I logged out whatsapp from phone. I tried with npm install github:timothydillan/whatsapp-web.js , but still it didnt worked. #wwebjs #1023718795019305001 #issue #general

random fiber
#

Adam zayn compartio lo siguiente y me funciono!!, igual haganlo en copia de su bot

Fix temporal para bug en whatsapp-web.js (Call / GroupMetadata / Newsletter)

Este ajuste evita crashes cuando ciertos módulos de WhatsApp Web no existen (cambios recientes en internals).

1️⃣ Client.js

Ruta:

/whatsapp-web.js/src/Client.js

Líneas aprox: 759 – 762

ANTES:

window.Store.Call.on('add', (call) => {
window.onIncomingCall(call);
});

DESPUÉS:

// Add check for Call module existence before attaching listener
if (window.Store.Call && typeof window.Store.Call.on === 'function') {
window.Store.Call.on('add', (call) => {
window.onIncomingCall(call);
});
}

2️⃣ Utils.js

Ruta:

/whatsapp-web.js/src/util/Injected/Utils.js

Fix GroupMetadata.update

Líneas aprox: 642 – 645

ANTES:

await window.Store.GroupMetadata.update(chatWid);

DESPUÉS:

// Check existence of GroupMetadata before calling update
if (
window.Store.GroupMetadata &&
typeof window.Store.GroupMetadata.update === 'function'
) {
await window.Store.GroupMetadata.update(chatWid);
}

Fix NewsletterMetadataCollection.update

Líneas aprox: 654 – 657

ANTES:

await window.Store.NewsletterMetadataCollection.update(chat.id);

DESPUÉS:

// Check existence of NewsletterMetadataCollection before calling update
if (
window.Store.NewsletterMetadataCollection &&
typeof window.Store.NewsletterMetadataCollection.update === 'function'
) {
await window.Store.NewsletterMetadataCollection.update(chat.id);
}

Resultado

✔️ Evita errores cuando WhatsApp Web cambia módulos internos
✔️ Previene crashes en llamadas, grupos y canales
✔️ Funciona como hotfix temporal

dense radish
#

Fixed for me 🚀 🚀

sudden basalt
#

🚀🚀🇧🇷

blazing linden
covert jungle
#

Muito bom, funcionou perfeitamente, muito obrigado.

echo yoke
#

same here!