whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Suddenly Send Message Stopped Working.

Open stockarea opened this issue 3 months ago • 3 comments

Everything used to work, but suddenly we have started getting this error when trying to send message.

URL endpoint https://client/sendMessage/<session_id>

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'sendSeen') at pptr://puppeteer_evaluation_script:7:37 at ExecutionContext._ExecutionContext_evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:229:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext.evaluate (/usr/src/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js:107:16) at async Client.sendMessage (/usr/src/app/node_modules/whatsapp-web.js/src/Client.js:950:28) at async sendMessage (/usr/src/app/src/controllers/clientController.js:82:22

Earlier everything was working.

stockarea avatar Sep 18 '25 18:09 stockarea

See related issue https://github.com/chrishubert/whatsapp-api/issues/366

avoylenko avatar Sep 18 '25 20:09 avoylenko

just run npm i whatsapp-web.js and it will work .... like avoylenko said, just update the whatsapp-web.js version

leandrojmolina avatar Sep 19 '25 17:09 leandrojmolina

no luck after npm i whatsapp-web.js

kbukhari-cpu avatar Sep 23 '25 12:09 kbukhari-cpu