open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.11k stars 588 forks source link

Dont send Attachment as video with url #2243

Closed angga30 closed 2 years ago

angga30 commented 2 years ago

Are you using the latest version of the library?

Current Behavior

No response

Expected Behavior

No response

Steps To Reproduce

No response

Mode

My own code

create() code

var id = await this.driver.sendFileFromUrl(id_chat, file, filename, caption);

DEBUG INFO

Debug info: {
wa_bot_api_1  |   "WA_VERSION": "2.2140.12",
wa_bot_api_1  |   "PAGE_UA": "WhatsApp/2.2108.8 Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36",
wa_bot_api_1  |   "WA_AUTOMATE_VERSION": "4.23.3",
wa_bot_api_1  |   "BROWSER_VERSION": "HeadlessChrome/93.0.4577.0",
wa_bot_api_1  |   "OS": "Linux 4.14",
wa_bot_api_1  |   "START_TS": 1635238695537
wa_bot_api_1  | }

Environment

- OS: Ubuntu
- Node: 14.15
- npm:

Screenshots

`

Screen Shot 2021-10-26 at 16 08 02

Anything else?

No response

smashah commented 2 years ago

@angga30 please share your config

Also, going forward, if there is data I can use to test don't take a screenshot of it, just paste it into the issue. It's one reason why I just ignored this issue when I first saw it.

smashah commented 2 years ago

I just tested this on chrome and chromium. This error you get is only from chromium because you're trying to send a video.

You need to set useChrome: true in your create config.