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] - Issue in posting to /api/sendVideo #328

Closed Souhaibahar closed 1 month ago

Souhaibahar commented 1 month ago

Hello, I'm having issue on the endpoint sendVideo

image

Version { "version": "2029.10.29", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/path/to/bin/google-chrome" }

this the request i'm sending { "chatId": "212661768542@c.us", "file": { "mimetype": "video/mp4", "filename": "funnyfastvideo.mp4", "url": "https://generator-pipeline-api-test.azurewebsites.net/media/fCN9yyJ9a3cj0_yBUW90EIAXL4c232JTnRBbH4i2_eRgz9XzDVmIuEII6Q98cycafUiky0ZvuVQ_3RKSRS3A==.mp4" }, "caption": "", "session": "newuser" }

and there is no response it stays like that , i tried with many different video links and to send to different users

image

and then after waiting long the response 499Undocumented | Error: response status is 499

image

please advice as soon as possible , Thank you so much

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"
  }
}

Personal TY for such detailed report! :heart:

patron:PRO

MadhabaPatra commented 1 month ago

Hi @devlikepro , Still getting same error. I am using latest version (2024.5.7) of devlikeapro/whatsapp-http-api-plus:arm

devlikepro commented 1 month ago

Sorry, we had to revert the solution, it causes sometime "scan qr" issues. Looking for a way to fix it!

patron:PRO

MadhabaPatra commented 1 month ago

Sure @devlikepro , Thanks for quick reply. Please update here once you fixed.

Thiagomleite commented 1 month ago

I need to send videos, please fix this as soon as possible.

willpexero commented 1 month ago

Please fix this problem to send videos using this API. I really need this feature again

joseamonteironeto commented 1 month ago

Please fix that problem :( Really need it...

cadduroleta commented 1 month ago

Could you please address this issue so I can resume sending videos through this API? It's a crucial feature for me.

Lucasvico1 commented 1 month ago

Please fix that problem :( Really need it...

brunoskiner commented 1 month ago

if you could fix this issue so that i could send videos through api it will really be helpful for me and a lot of people

ANACAROLINA1089 commented 1 month ago

Could you fix the video API? I'm having problems when I try to send a video.

rafaelboav commented 1 month ago

I need to send videos via API. could you please fix this issue?

allburov commented 1 month ago

Fine, fine, just stop spamming :D

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, because it requires additional actions right now. When we added "by default" for all session - we'll close the issue and remove the note

patron:PRO

allburov commented 1 month ago

:point_up: @Thiagomleite @willpexero @joseamonteironeto @cadduroleta @Lucasvico1 @brunoskiner @ANACAROLINA1089 @rafaelboav

patron:PRO

joseamonteironeto commented 1 month ago

☝️ @Thiagomleite @willpexero @joseamonteironeto @cadduroleta @Lucasvico1 @brunoskiner @ANACAROLINA1089 @rafaelboav

patron:PRO

Fine, fine, just stop spamming :D

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 ⚠️

  • 💡 If you're experiencing "forever loading" issue (#321, #328) - set up WAHA_WEBJS_WEB_VERSION=2.2412.54-videofix environment variable:
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, because it requires additional actions right now. When we added "by default" for all session - we'll close the issue and remove the note

patron:PRO

It works! Thanks :)

devlikepro commented 1 month ago

Let's close the issue because it has a workaround. When we moved to new whatsapp (when they released it) - it'll work by default

patron:PRO

egbertomonteiro commented 1 week ago

Im facing the same problem. Version: 2024.6.7 no workaround applied. I updated to the latest version a few weeks ago to resolve the random session crashes. If I apply this workaround, will I have any downside?

devlikepro commented 1 week ago

If I apply this workaround, will I have any downside?

Nope, it's regular version, but with the fix!

We're working on fixiing it completely, hopefully soon :crossed_fingers:

patron:PRO