Skip to content

Getting groups from an account with bulk amount crashes #2009

@gutitrombotto

Description

@gutitrombotto

Are you using the latest version of the library?

  • I have checked and am using the latest version of the library.

Current Behavior

Getting groups list with a large amount (1000) throws expection in puppeteer.

Expected Behavior

List of groups

Steps To Reproduce

Running this...

client.getAllGroups().then((groups) => {
for (let i = 0; i < groups.length; i++) {
const group = groups[i];
groupsData.push({name: group.name, groupId: group.id});
}
});

Mode

My own code

create() code

create({
  sessionId: DEFAULT_SESSION,
  headless: false,
}).then((client) => {
  app.locals.clients[DEFAULT_SESSION] = client;
  prestart(client);
});

DEBUG INFO

{
  "WA_VERSION": "2.2130.9",
  "WA_AUTOMATE_VERSION": "4.14.1",
  "BROWSER_VERSION": "HeadlessChrome/88.0.4298.0",
  "START_TS": 1628864269042
}

Environment

- OS: Linux 5.11
- Node: 16.6.2
- npm: 
- yarn: 1.22.5

Screenshots

Puppeteer crashes

/home/atrombotto/filadd/capybara/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^

Error: Evaluation failed: p
at ExecutionContext._evaluateInternal (/home/atrombotto/filadd/capybara/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ExecutionContext.evaluate (/home/atrombotto/filadd/capybara/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:106:16)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions