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
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);
});
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: