-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][WEBJS] - TargetCloseError: Unexpected Closure of Puppeteer Browser Session During Contact Check #685
Comments
Hi! Could you try to switch to chrome based image?
|
Hi |
Do you mean you got the error only once or time to time, not always? |
It's possible, but such behavior occurred specifically when checking the number for existence. That's why I decided to report it. Thank you for your response! |
Describe the Bug
When attempting to check the existence of a contact using the
/api/contacts/check-exists
endpoint, an error occurs because the browser session unexpectedly closes. The Puppeteer library throws a "Protocol error (Runtime.callFunctionOn): Target closed" exception, which interrupts the WebJS session.Title
"TargetCloseError: Puppeteer Browser Session Closed Unexpectedly During Contact Check"
Version
Docker logs
TargetCloseError: Protocol error (Runtime.callFunctionOn): Target closed at CallbackRegistry.clear (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:73:36) at CdpCDPSession._onClosed (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:101:25) at #onClose (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:167:21) at Connection.dispose (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:173:22) at CdpBrowser.disconnect (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:230:26) at CdpBrowser.close (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Browser.js:226:20) at async WebjsClient.destroy (/app/node_modules/whatsapp-web.js/src/Client.js:787:9)
The text was updated successfully, but these errors were encountered: