Skip to content
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

Session closed. Most likely the page has been closed. #237

Open
su-chang opened this issue Feb 17, 2022 · 2 comments
Open

Session closed. Most likely the page has been closed. #237

su-chang opened this issue Feb 17, 2022 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@su-chang
Copy link
Member

22:30:00 ERR Config ###########################
22:30:00 ERR Config unhandledRejection: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:95:24) [object Promise]
22:30:00 ERR Config ###########################
22:30:00 ERR Config ###########################
22:30:00 ERR Config unhandledRejection: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed. [object Promise]
22:30:00 ERR Config ###########################
22:30:00 ERR Config process.on(unhandledRejection) promise.catch(Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.)
Config Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:95:24)
22:30:00 ERR Config process.on(unhandledRejection) promise.catch(Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.)
Config Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:95:24)
(node:10) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 28)
22:30:01 INFO BotAction syncContact(ready=false, forceSync=false)
@su-chang su-chang added the bug Something isn't working label Feb 17, 2022
@su-chang
Copy link
Member Author

22:45:30 VERB Contact say(FileBox#Url<1M.xls>)
22:45:30 INFO PuppetWhatsApp message messageSendFile([email protected], 1M.xls)
22:45:32 INFO PuppetWhatsApp message messageSend([email protected], object)
22:45:32 ERR BroadcastTaskWorker _sendTask(620e5f88598a57ecccad1dbd) error:
Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:95:24)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

@su-chang su-chang added the help wanted Extra attention is needed label Feb 17, 2022
@su-chang su-chang self-assigned this Feb 17, 2022
@bung87
Copy link
Contributor

bung87 commented Feb 17, 2022

unhandledRejection 在 puppet-whatsapp 或者manager那儿监听 Protocol error (Runtime.callFunctionOn): Session closed 的时候重启。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants