whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

Error bug when i use code invitecode group whatsapp

Open sakha27pot opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

sakha27pot avatar Jun 07 '23 09:06 sakha27pot

i have a same issue

Fannn03 avatar Jun 24 '23 10:06 Fannn03

same issue

Nurse1angeL avatar Jul 03 '23 06:07 Nurse1angeL