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.21k stars 3.63k forks source link

Error when sendCreateGroup - Error: Evaluation failed: i at ExecutionContext._evaluateInternal #1611

Closed soby-bolu closed 10 months ago

soby-bolu commented 2 years ago

Is there an existing issue for this?

Describe the bug

Cannot using function sendCreateGroup to create a group

Expected behavior

Group created and no error

Steps to Reproduce the Bug or Issue

  1. Using function createGroup

Relevant Code

const createRes = await this.pupPage.evaluate(async (name, participantIds) => { const participantWIDs = participantIds.map(p => window.Store.WidFactory.createWid(p)); const id = window.Store.MsgKey.newId(); const res = await window.Store.GroupUtils.sendCreateGroup(name, participantWIDs, undefined, id); // This function erorr return res; }, name, participants);

Browser Type

Chromium

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS : Mac Phone OS : Android wwebjs version : "^1.17.1" node version : 14.4 WhatsApp Web version : 2.2228.4

Additional context

No response

alechkos commented 10 months ago

Fixed in #2344