whatsapp-web.js
whatsapp-web.js copied to clipboard
Evaluation failed: k
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
Failed to send group messages
Expected behavior
Evaluation failed: k
Steps to Reproduce the Bug or Issue
Evaluation failed: k
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: Android wwebversion: '2.2319.9' wwebjsversion: '1.19.5' Node.js Version: v18.4.0
Additional context
No response
Has anyone been able to solve this issue?
Facing same issue while group creation
I have the same problem

Here too with the same problem. Can anyone help? When sending messages, the message does not reach the contact.
I managed to solve the problem, chrome was out of date on the server.
I managed to solve the problem, chrome was out of date on the server.
How were you able to update chrome
My server is Ubuntu Server and I used these commands to update.
1 -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
2 -
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
3 -
sudo apt-get update
4 - This command below is to remove the current version of chrome and then do a clean installation.
sudo apt-get remove google-chrome-stable
5 - Installation of the latest version of Chrome:
sudo apt-get install google-chrome-stable
I get the error even after following above solutions. The error is specifically on calling Client.getChats only.
Here is the error stack:
Error: Evaluation failed: k
at ExecutionContext._evaluateInternal (/home/abcd/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (/home/abcd/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
at async Client.getChats (/home/abcd/node_modules/whatsapp-web.js/src/Client.js:725:21)
I felt it could be related to Update available message, I had to update WhatsApp, and then disconnect from phone and reconnect. However that DID NOT fix the error:

One thing remaining is a message on Linked Devices section of the app: "Syncing. Keep app open.". Doesn't seem to go. Though cannot be 100% sure if its related.
Client.getChats is still not functional.
Client.getChatById is functional.
Also got this issue on client.getChats()
Updating chrome did not help :(
Working for me
When I start my connection and call the wbot's getChats() function right after, it gives me the k evaluation error, but if I don't call the function at the start of the wbot and call the function after a while it works.
Working for me
When I start my connection and call the wbot's getChats() function right after, it gives me the k evaluation error, but if I don't call the function at the start of the wbot and call the function after a while it works.
Works fine for me! Tks!
My server is Ubuntu Server and I used these commands to update.
1 -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
2 -
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
3 -
sudo apt-get update
4 - This command below is to remove the current version of chrome and then do a clean installation.
sudo apt-get remove google-chrome-stable
5 - Installation of the latest version of Chrome:
sudo apt-get install google-chrome-stable
I did it and changed a bit the code. But it's just a workaround!
Client.js file: