Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when sending multimedia files larger than 30MB #1951

Open
1 task done
mrjhong opened this issue Jan 22, 2023 · 2 comments · May be fixed by #2368
Open
1 task done

Error when sending multimedia files larger than 30MB #1951

mrjhong opened this issue Jan 22, 2023 · 2 comments · May be fixed by #2368
Labels
bug Something isn't working

Comments

@mrjhong
Copy link

mrjhong commented Jan 22, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When attempting to send multimedia files (such as mp4) using the whatsapp-web.js package, an error occurs if the file size exceeds 30MB. However, if the file is smaller than this size it is sent successfully. The error message states "Error: Evaluation failed: a"

Expected behavior

The multimedia file should be sent successfully, regardless of its size.

Steps to Reproduce the Bug or Issue

  1. Use the whatsapp-web.js package to connect to WhatsApp Web
  2. Attempt to send a multimedia file larger than 30MB using the sendFile method of the package
    3 . Observe that an error occurs

Relevant Code

this my code :

{
const nameFile = "./src/files/audio/"+"8989045"+".mp4"
console.log(nameFile)
try {

    try {
        const media = MessageMedia.fromFilePath(nameFile);
        client.sendMessage(chatId, message.title + "\n" + message.cuerpo + "\n" + message.link);
        try{
        client.sendMessage(chatId, media)
    }catch(e){
        console.log(e)
    }

    console.log("Archivo enviado")
}
catch{
    console.log("error")
}

}

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

windows 10
Node.js v18.13.0
whatsapp-web.js 1.19.2

Additional context

No response

@mrjhong mrjhong added the bug Something isn't working label Jan 22, 2023
@dhojea
Copy link

dhojea commented Feb 2, 2023

I have the same problem, did you manage to check something?

@Axe7bravo
Copy link

Doesn't that have to do with Whatsapp's maximum file size restriction?

@alechkos alechkos linked a pull request Dec 4, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants