devlikeapro / waha

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

[BUG][WEBJS] - Unable to send video #321

Closed francescodauria closed 1 month ago

francescodauria commented 1 month ago

I tried to send video with endpoint /api/sendVideo but it is continuously loading via PostMan. I used the devlikeapro/whatsapp-http-api-plus:chrome image as written in the documentation.

Version

{
  "version": "2024.5.3",
  "engine": "WEBJS",
  "tier": "PLUS",
  "browser": "/usr/bin/google-chrome-stable"
}

Docker Logs

In the Docker logs there are no messages

allburov commented 1 month ago

Hi, we're on it! As a quick workaround - you can send the video as attachment (file) https://waha.devlike.pro/docs/how-to/send-messages/#send-file-imagesversionspluspng IT's not the best solution, but it's something...

patron:PRO

francescodauria commented 1 month ago

Is there any provision for resolution?

devlikepro commented 1 month ago

Fixed in 2024.5.6!

Try first the example payload from https://waha.devlike.pro/docs/how-to/send-messages/#send-video-imagesversionspluspng

{
  "session": "default",
  "chatId": "11111111111@c.us",
  "caption": "Watch this video!",
  "file": {
    "mimetype": "video/mp4",
    "filename": "video.mp4",
    "url": "https://github.com/devlikeapro/whatsapp-http-api/raw/core/examples/video.mp4"
  }
}

patron:PRO

allburov commented 1 month ago

Added a temporary solution in WAHA Plus 2024.5.9


https://waha.devlike.pro/docs/how-to/send-messages/#send-video-imagesversionspluspng

⚠️ WEBJS (default) engine notes for sending videos ⚠️

docker run -it -p 3000:3000/tcp -e WAHA_WEBJS_WEB_VERSION=2.2412.54-videofix devlikeapro/whatsapp-http-api-plus:chrome

I don't close the issue #328, please use it as the latest new about the sending video issues!

patron:PRO

francescodauria commented 1 month ago

I'll try it. Thank you.

patron:PLUS