puppet-wechat icon indicating copy to clipboard operation
puppet-wechat copied to clipboard

ERR PuppetPuppeteer initScanWatchdog() on(reset) recover FAIL: Error: Error: Navigation failed because browser has disco nnected!

Open FX-HAO opened this issue 7 years ago • 0 comments

I got the following error after running few days.

06:53:29 WARN PuppetPuppeteer initScanWatchdog() on(reset) lastFood: https://login.weixin.qq.com/l/wao-9aYzOw==, timePast: 120000
06:54:00 ERR PuppetPuppeteer initScanWatchdog() on(reset) exception: TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
06:54:00 ERR PuppetPuppeteer initScanWatchdog() on(reset) try to recover by bridge.{quit,init}()
06:54:18 ERR PuppetPuppeteerBridge start() exception: Error: Navigation failed because browser has disconnected!
06:54:18 ERR PuppetPuppeteerBridge start() exception Error: Navigation failed because browser has disconnected!, close page/browser exception Error: Protocol error: Connection closed. Most likely the page has been closed. 
06:54:18 ERR PuppetPuppeteer initScanWatchdog() on(reset) recover FAIL: Error: Error: Navigation failed because browser has disconnected!
(node:25550) UnhandledPromiseRejectionWarning: Error: Error: Error: Navigation failed because browser has disconnected!
    at PuppetPuppeteer.puppet.on.error (/root/wechatbot/node_modules/wechaty/src/wechaty.ts:600:32)
    at emitOne (events.js:116:13)
    at PuppetPuppeteer.emit (events.js:211:7)
    at PuppetPuppeteer.emit (/root/wechatbot/node_modules/wechaty-puppet/src/puppet.ts:298:18)
    at PuppetPuppeteer.<anonymous> (/root/wechatbot/node_modules/wechaty-puppet-puppeteer/src/puppet-puppeteer.ts:242:16)
    at Generator.throw (<anonymous>)
    at rejected (/root/wechatbot/node_modules/wechaty-puppet-puppeteer/dist/src/puppet-puppeteer.js:23:65)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)
(node:25550) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:25550) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

wechaty: ^0.22.4

I'm running in a very tight environment with a lot of tasks.

FX-HAO avatar Jan 21 '19 06:01 FX-HAO