-
-
Notifications
You must be signed in to change notification settings - Fork 323
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] - Duplicate Message Delivery Due to Promise was collected Error in whatsapp-web.js #714
Comments
Could you please take a look at this issue? The error leads to duplicate message deliveries, which impacts the messaging process reliability. Let me know if you need more details or logs to diagnose the problem. |
Related #244 |
ProtocolError: Protocol error (Runtime.callFunctionOn): Promise was collected
at <instance_members_initializer> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:94:14)
at new Callback (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:98:16)
at CallbackRegistry.create (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:23:26)
at Connection._rawSend (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:90:26)
at CdpCDPSession.send (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
at #evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:360:50)
at ExecutionContext.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/ExecutionContext.js:275:36)
at IsolatedWorld.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/IsolatedWorld.js:100:30)
at CdpFrame.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Frame.js:341:43)
at CdpFrame.<anonymous> (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:104:27)
at CdpPage.evaluate (/app/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:807:43)
at WebjsClient.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:956:44)
at WhatsappSessionWebJSPlus.sendText (/app/dist/core/engines/webjs/session.webjs.core.js:289:30)
at ChattingController.sendText (/app/dist/api/chatting.controller.js:30:25)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) |
Will this issue be addressed in any way? Because it’s causing significant disruption. |
Is there a solution? Could you please advise? @devlikepro |
When sending text through the whatsapp-web.js library, an error occurs: Protocol error (Runtime.callFunctionOn): Promise was collected. Despite the error, the message is successfully delivered. However, due to the error, the system treats the request as failed and re-sends the message, causing duplicate deliveries.
logs
The text was updated successfully, but these errors were encountered: