whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Error: Evaluation failed: u

Open tasaddaq-rana opened this issue 2 years ago • 2 comments

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

tasaddaq-rana avatar May 25 '22 08:05 tasaddaq-rana

Você testou com o WhatsApp convencional? Ou somente com o WhatsApp Business? Have you tested with conventional WhatsApp? Or only with WhatsApp Business?

ranieresantos avatar May 25 '22 15:05 ranieresantos

Check #1449

jonylim avatar May 26 '22 03:05 jonylim

Para enviar imagens que tenham menos de 16M, utilize a seguinte propriedade: { sendMediaAsDocument: false } Para outros arquivos e imagens maiores use: { sendMediaAsDocument: true }

jrolweb avatar Oct 24 '22 19:10 jrolweb

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

RogerioSobreraDosSantos avatar Apr 19 '24 22:04 RogerioSobreraDosSantos