devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
820 stars 249 forks source link

[BUG][WEBJS + NOWEB] - /api/sendVoice doesn't work properly #284

Closed allburov closed 2 months ago

allburov commented 3 months ago

Error: Evaluation failed: u\n at ExecutionContext._evaluateInterna

Khosravangroup commented 3 months ago

Yes Iv got this error too

patron:PLUS

allburov commented 2 months ago

Hi! It looks like there was an issue with file format in example

Tried it with with both WEBJS and NOWEB engine - works with no issues!

{
  "chatId": "79111@c.us",
  "file": {
    "mimetype": "audio/ogg; codecs=opus",
    "url": "https://opus-codec.org/static/examples/ehren-paper_lights-96.opus"
  },
  "session": "default"
}

Another file that I've tried - https://opus-codec.org/static/examples/ehren-paper_lights-96.opus

Make sure you're sending OPUS encoding