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

[BUG][WEBJS] - Issue in posting to /api/sendVideo

Open Souhaibahar opened this issue 9 months ago • 15 comments

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": "[email protected]", "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

Souhaibahar avatar May 11 '24 21:05 Souhaibahar

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": "[email protected]",
  "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

devlikepro avatar May 12 '24 03:05 devlikepro

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

MadhabaPatra avatar May 14 '24 13:05 MadhabaPatra

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

patron:PRO

devlikepro avatar May 15 '24 07:05 devlikepro

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

MadhabaPatra avatar May 17 '24 17:05 MadhabaPatra

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

Thiagomleite avatar May 21 '24 14:05 Thiagomleite

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

willpexero avatar May 21 '24 14:05 willpexero

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

joseamonteironeto avatar May 21 '24 14:05 joseamonteironeto

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

cadduroleta avatar May 21 '24 14:05 cadduroleta

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

Lucasvico1 avatar May 21 '24 15:05 Lucasvico1

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

brunoskiner avatar May 21 '24 15:05 brunoskiner

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

ANACAROLINA1089 avatar May 21 '24 16:05 ANACAROLINA1089

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

rafaelboav avatar May 21 '24 16:05 rafaelboav

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

allburov avatar May 22 '24 09:05 allburov

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

patron:PRO

allburov avatar May 22 '24 09:05 allburov

☝️ @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 :)

joseamonteironeto avatar May 22 '24 13:05 joseamonteironeto

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

devlikepro avatar May 28 '24 03:05 devlikepro

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?

egbertomonteiro avatar Jun 26 '24 20:06 egbertomonteiro

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

devlikepro avatar Jun 27 '24 07:06 devlikepro