#Error Evaluation failed R when I send mp4 video file.

15 messages · Page 1 of 1 (latest)

granite agate
#

Hello, I have
Error: Evaluation failed: R when I send mp4 video file.
Error send my video message
I tried these suggestion:
I added executablePath: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome', in new client
this is my source code https://paste.ofcode.org/rQNwtEwciWp3U7ixdqAyFk

reef yarrow
#

it ends right there?

#

you should use

await MessageMedia.fromFilePath('./somePath')
granite agate
#

I updated link because I paste part of code sorry.

reef yarrow
#

are you sure the number its a valid wsp number?

granite agate
#

yes, I write correct number instead of TEST_NUMBER When I try to send png file, I can successfully send when I try to send mp4 file I couldnt send

#

When I try like this:
var mediaMP4 = await MessageMedia.fromFilePath("example.mp4");
client.sendMessage(chatId, mediaMP4);
I have same error again

reef yarrow
#

did you try sending some diferent mp4 file?

#

maybe its a codec problem

granite agate
#

No not mp4, png successfully send but mp4, avi file coulndt send

reef yarrow
#

do you know that mp4 its just a container, right?

#

under the hood could been encoded in difererent codecs

#

maybe some are unsupported by whatsapp web

granite agate
#

I found the solution:
when I send to mp4 file I add sendMediaAsDocument: True and it works for me // client.sendMessage(chatId, mediaMP4, { sendMediaAsDocument: true });