whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Evaluation failed: Error: getAudioDuration: error loading audio

Open hlatki01 opened this issue 11 months ago • 7 comments

Hello, while trying to send a media using client/sendMessage/ with the body:

{
  "chatId": "[email protected]",
  "contentType": "MessageMediaFromURL",
  "content": "https://samples-files.com/samples/Audio/mp3/sample-file-4.mp3"
}

I'm getting the following error:

{
  "success": false,
  "error": "Evaluation failed: Error: getAudioDuration: error loading audio\n    at new Error (<anonymous>:5:31)\n    at e (https://web.whatsapp.com/:2:4914)\n    at HTMLAudioElement.<anonymous> (https://web.whatsapp.com/app.1348daccac22f513cdcb.js:268:533788)"
}

The same happens if I try to get the file and send it in the base64 format, anyone know what should be done?

hlatki01 avatar Mar 05 '24 22:03 hlatki01