pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
14.95k stars 3.55k forks source link

Don´t send media video #3163

Closed Darkemdk closed 1 month ago

Darkemdk commented 1 month ago

Is there an existing issue for this?

Describe the bug

I can't send videos on WhatsApp, I have already used the techniques in question #3002 and #2816 without success

Expected behavior

May I be able to send the gif.

Steps to Reproduce the Bug or Issue

1.Send .mp4 video 2.Send video in WhatsApp

Relevant Code

const client = new Client({ webVersion: "2.2413.51", webVersionCache: { type: "remote", remotePath:"https://raw.githubusercontent.com/guigo613/alternative-wa-version/main/html/2.2413.51-beta-alt.html" },
puppeteer: { executablePath: 'C:\Program Files\Google\Chrome\Application\chrome.exe', },

Error Code: C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:284 throw new Error('Execution context was destroyed, most likely because of a navigation.'); ^

Error: Execution context was destroyed, most likely because of a navigation. at rewriteError (C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:284:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ExecutionContext._ExecutionContext_evaluate (C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:227:56) at async ExecutionContext.evaluate (C:\Users\Administrator\Desktop\Bot\node_modules\puppeteer-core\lib\cjs\puppeteer\common\ExecutionContext.js:107:16) at async Client.inject (C:\Users\Administrator\Desktop\Bot\node_modules\whatsapp-web.js\src\Client.js:106:36) at async Client.initialize (C:\Users\Administrator\Desktop\Bot\node_modules\whatsapp-web.js\src\Client.js:340:9)

Node.js v20.15.0

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Windows whatsapp-web.js version 1.23.1-alpha.3 WhatsApp Web version [run await client.getWWebVersion()]: Node.js Version 20.11

Additional context

I have already used all the techniques from #3002 (all alternative whats) and applied the path from #2816. I just have a mistake...

alechkos commented 1 month ago

Check your code