Closed dvillegasGlobalis closed 11 months ago
Same here :hand:
same i guess, for me one message is sent then the code doesn't throws but stops running (the code after doesn't execute)
i am on 1.21 and same was occuring on 1.20
also, exiting process of the terminal doesn't close chrome browser because i am headless: false
Don't send buttons or lists.
They don't work and break the web. Upgrade your connection and everything will work.
Don't send buttons or lists.
They don't work and break the web. Upgrade your connection and everything will work.
As you can see in the code the message is just plain text
Hi, did you solved it?
Same here :hand:
We're also facing the same issue
I am facing the same issue. Sometimes the message is not sent out even though there is no error.
same here, the sendMessage method returns success result but the message is not sent
Here it wont even "fake send". it just wont reply neither sendMessage, 0 errors also.
edit:
Solved my problem:
npm i github:pedroslopez/whatsapp-web.js#9a6466edbc4af5b5eeea060917c15f86b283f510
still have the error. did you solve it?
still have the error. did you solve it?
Still have the error
found this answer in #2473
i resolved it by correcting my own code: in my cas the for loop was incorrectly set, and so it was releasing an infinite loop and preventing the code to be executed smoothly
Is there an existing issue for this?
Describe the bug
I am trying to make a chatbot with automatic responses, sometimes the sendMessage is not working. There is no error but the message is not sending. If i execute in non-headless mode i see the red icon that says that there was an error.
as you can see in the image it was working and then start to show the error.
Expected behavior
Send a message after the user writes a specific word.
Steps to Reproduce the Bug or Issue
Relevant Code
const { Client, LocalAuth, List } = require('whatsapp-web.js'); const qrcode = require('qrcode-terminal');
const client = new Client({ authStrategy: new LocalAuth(), puppeteer: { headless: false } });
const lastMessages = new Map();
client.on('qr', qr => { qrcode.generate(qr, { small: true }); });
client.on('ready', () => { console.log('Dispositivo conectado'); });
client.on('message', message => { //console.log('message: ', message); if(message.body.trim() === 'test_bot') { client.sendMessage(message.from, 'Some text'); } });
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Windows Phone: Android whatsapp-web.js: 1.21.0 WhatsApp Web: 2.2329.9 Node.js 18.16.0
Additional context
The problem appears from time to time.