Whatsapp-web.js: Found Errors After Updating WhatsApp

Created on 5 Nov 2020  路  14Comments  路  Source: pedroslopez/whatsapp-web.js

I encountered an error after updating WhatsApp to version 2.20.202.18.
The error is like this:

UnhandledPromiseRejectionWarning: Error: Evaluation failed: Error: MsgKey error: don't have a matching constructor

bug

Most helpful comment

WhatsApp web released an update last night that caused this issue, but I immediately addressed it and released the new version. Please make sure you are running v1.11.0. Any other version will not work.

Check by running this:

client.on('ready', async () =>{
    console.log("WhatsApp Web v", await client.getWWebVersion());
    console.log("WWebJS v", require("whatsapp-web.js").version);
});

All 14 comments

Yeah, it's happen.

How to solve it?

SAME

It seems that WhatsApp improved their security or made changes to their code structure.
How do you think about this?

My code still working well. I run from some weeks ago.

Maybe the problem comes in the new version of Whatsapp Web.

I have this problem too

same here, need solution

same with me please help

Try updating to v1.11.0
npm update...

That fixed my problem!

npm update

its working, thanks for save my hours

npm update

Hi, what command did you execute ?

Thank's

thanks a million its work fine now

Do you have to do anything besides updating the package? I did it but it's still not working here

WhatsApp web released an update last night that caused this issue, but I immediately addressed it and released the new version. Please make sure you are running v1.11.0. Any other version will not work.

Check by running this:

client.on('ready', async () =>{
    console.log("WhatsApp Web v", await client.getWWebVersion());
    console.log("WWebJS v", require("whatsapp-web.js").version);
});
Was this page helpful?
0 / 5 - 0 ratings

Related issues

MillesC picture MillesC  路  6Comments

centralderastreamentogps picture centralderastreamentogps  路  7Comments

ncesar picture ncesar  路  7Comments

gabriel-tandil picture gabriel-tandil  路  5Comments

fdciabdul picture fdciabdul  路  6Comments