pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.53k stars 3.7k forks source link

Getting error on send message only on some whatsapp numbers #1431

Closed tejashwasharma closed 1 year ago

tejashwasharma commented 2 years ago

Is there an existing issue for this?

Describe the bug

0|www | Error: Evaluation failed: TypeError: e.match is not a function 0|www | at new c (https://web.whatsapp.com/bootstrap_qr.15b07f37ecbe5a626367.js:69:26394) 0|www | at Object.s [as createWid] (https://web.whatsapp.com/bootstrap_qr.15b07f37ecbe5a626367.js:69:30732) 0|www | at puppeteer_evaluation_script:2:53 0|www | at ExecutionContext._evaluateInternal (/home/ubuntu/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) 0|www | at runMicrotasks () 0|www | at processTicksAndRejections (node:internal/process/task_queues:96:5) 0|www | at async ExecutionContext.evaluate (/home/ubuntu/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) 0|www | at async Client.sendMessage (/home/ubuntu/backend/node_modules/whatsapp-web.js/src/Client.js:594:28) 0|www | at async adminSectionOfCommands (/home/ubuntu/backend/whatsapp-bot/index.js:89:21)

Expected behavior

It should send the message. I am sending a list from non business account.

Steps to Reproduce the Bug or Issue

Simply sending the message with list Note: it is only not working with few of whatsapp users

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

AWS EC2 linus free tier

Additional context

No response

shirser121 commented 2 years ago

Same error in my end. Only ones a while

macleysousa commented 2 years ago

Do you have any browsers installed on the instance? try to run this command sudo apt install libnss3-dev libatk-bridge2.0-0 libxkbcommon-x11-0 libgtk-3-0 libgbm-dev

tejashwasharma commented 2 years ago

Browser is already installed. I am able to send messages to everyone except few contacts.

macleysousa commented 2 years ago

Do you have any contact examples that can be used as a test?

luiscuriel commented 2 years ago

I have the same problem, but it has started today... no problem before... any update on this please?