#can someone help me ? return Promise.reject(new Error(`Protocol error

3 messages · Page 1 of 1 (latest)

slim mulch
#

hello everyone i have this problem when user logout or send messages
please i need help
node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:218
return Promise.reject(new Error(Protocol error (${method}): Session closed. Most likely the ${this._targetType} has been closed.));
^

Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
at CDPSession.send (C:\laragon\www\github\new-node-whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\Connection.js:218:35)
at ExecutionContext._evaluateInternal (C:\laragon\www\github\new-node-whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:204:50)
at ExecutionContext.evaluate (C:\laragon\www\github\new-node-whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:27)
at DOMWorld.evaluate (C:\laragon\www\github\new-node-whatsapp\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\DOMWorld.js:97:24)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

ivory bronze
#

The library is out-to-date. It's not working right now. Pay attention to the #general channel

slim mulch
#

Thank you dear ,I am depressed