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
15.39k stars 3.67k forks source link

Error bug when i use code invitecode group whatsapp #2256

Open sakha27pot opened 1 year ago

sakha27pot commented 1 year ago

Is there an existing issue for this?

Describe the bug

Error bug when i use code invitecode group whatsapp

Expected behavior

-

Steps to Reproduce the Bug or Issue

-

Relevant Code

else if (message.body.startsWith(`${config.prefix}join`)) {
            const inviteCode = message.body.split(' ')[1];
            try {
                await client.acceptInvite(inviteCode);
                message.reply('Joined the group!');
            } catch (e) `{`
                console.log(e);
                message.reply('That invite code seems to be invalid.');
            }
        }

Error: Evaluation failed: i at ExecutionContext._evaluateInternal (C:\users\root\BOT\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:97:5) at async ExecutionContext.evaluate (C:\users\root\BOT\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16) at async Client.acceptInvite (C:\users\root\BOT\node_modules\whatsapp-web.js\src\Client.js:896:21) at async Client. (C:\users\root\BOT\index.js:117:5)

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

No, I am not using Multi Device

Environment

OS: [Windows] Phone OS: [Android] whatsapp-web.js version [1.19.3] WhatsApp Web version [2.2323.4]: Node.js Version [13.14.0]

Additional context

No response

Fannn03 commented 1 year ago

i have a same issue

Nurse1angeL commented 1 year ago

same issue