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

[Bug] ProtocolError: Protocol error (Runtime.callFunctionOn): Target closed.

Open joelvitorniino 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

Bug closed the connection.

ProtocolError: Protocol error (Runtime.callFunctionOn): Target closed. 0|app | at /root/bo/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:230:24 0|app | at new Promise () 0|app | at CDPSession.send (/root/bo/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:226:16) 0|app | at ExecutionContext._evaluateInternal (/root/bo/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50) 0|app | at ExecutionContext.evaluate (/root/bo/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27) 0|app | at DOMWorld.evaluate (/root/bo/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24) 0|app | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { 0|app | originalMessage: '' 0|app | }

Expected behavior

Connection closed

Steps to Reproduce the Bug or Issue

1 - start the app

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

[whatsapp-web.js] version - latest

Additional context

No response

joelvitorniino avatar May 22 '23 15:05 joelvitorniino

I upgraded to v1.20.0 and it was fixed

aithmid avatar May 22 '23 16:05 aithmid

I upgraded to v1.20.0 and it was fixed

how to upgrade

Juliehepto avatar May 23 '23 11:05 Juliehepto

Not fixed. It is showing the same error.

RAKESHSUVIDYA avatar May 25 '23 12:05 RAKESHSUVIDYA

I have the same error

VINICIUSOLIVER avatar May 25 '23 14:05 VINICIUSOLIVER

Same error here

usystemsoftwares avatar May 25 '23 17:05 usystemsoftwares

I have the same error

584832915 avatar Jun 09 '23 01:06 584832915

Same error. But, in my case, it just happens to one connection.

CSFelix avatar Jun 12 '23 13:06 CSFelix

Same error

NissiusRibas avatar Aug 23 '23 13:08 NissiusRibas

I'm getting the same error using version "1.22.2-alpha.1"

fernandomondo avatar Sep 26 '23 23:09 fernandomondo

mesmo erro

LennonSantos avatar Oct 02 '23 21:10 LennonSantos

I have the same error

T3uZ avatar Oct 02 '23 22:10 T3uZ