#Protocol error (Runtime.callFunctionOn): Execution context was destroyed.

1 messages · Page 1 of 1 (latest)

cosmic flicker
#

wwebjs version: github:pedroslopez/whatsapp-web.js#webpack-exodus

My client config:

this.client = new Client({
webVersionCache: {
type: 'remote',
remotePath: 'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.2407.3.html',
},
authStrategy: new LocalAuth({
clientId: this.clientId,
}),
puppeteer: {
headless: true,
dumpio: true,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
},
});

The error i get when starting my server:

ProtocolError: Protocol error (Runtime.callFunctionOn): Execution context was destroyed. at /Users/xxx/xxx/marketplace/node_modules/puppeteer-core/src/common/Connection.ts:400:16 at new Promise (<anonymous>) at CDPSessionImpl.send (/Users/xxx/xxx/marketplace/node_modules/puppeteer-core/src/common/Connection.ts:396:12) at ExecutionContext._ExecutionContext_evaluate (/Users/xxx/xxx/marketplace/node_modules/puppeteer-core/src/common/ExecutionContext.ts:274:44) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (/Users/xxx/xxx/marketplace/node_modules/puppeteer-core/src/common/ExecutionContext.ts:137:12)

I encounter this error since today. Does someone else encounter this error right now?

dense slate
#

Outdated web version cache

Remove it

#

Use lib 1.25.0 too

cosmic flicker
#

So to clearify if i understand it right.
You recommend using the yarn/npm version of wwebjs instead the github:pedroslopez/whatsapp-web.js#webpack-exodus source?

And should i replace the webVersionCache with something different then or remove it at all?