whatsapp-web.js
whatsapp-web.js copied to clipboard
Error: Evaluation failed: u
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
Error: Evaluation failed: u showing for last 2 days when send media message, before everything was working fine.
Expected behavior
should send media message
Steps to Reproduce the Bug or Issue
1- send message error
Relevant Code
const media = await MessageMedia.fromUrl(req.body.url).then((media_)=>{
client.sendMessage(number, media_, {caption: req.body.caption}).then(async response => {
res.send(sender, 'Attachment message sent successfully', 463, 'success', res);
return;
}).catch(err => {
res.send(sender, err, 464, 'error', res);
return;
});
}).catch(async (err) => {
res.send('Error in fetching file, please check the type.');
return;
});
Browser Type
Google Chrome
WhatsApp Account Type
WhatsApp Business
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
Linux
Additional context
No response
Você testou com o WhatsApp convencional? Ou somente com o WhatsApp Business? Have you tested with conventional WhatsApp? Or only with WhatsApp Business?
Check #1449
Para enviar imagens que tenham menos de 16M, utilize a seguinte propriedade:
{ sendMediaAsDocument: false }
Para outros arquivos e imagens maiores use:
{ sendMediaAsDocument: true }
no meu caso o erro era que a extensao do arquivo estava errada, o cliente tinha mudado o nome de um arquivo jpeg para mp4, o problema era o arquivo