wechaty / puppet-whatsapp

Wechaty Puppet for Whatsapp
https://npmjs.com/package/wechaty-puppet-whatsapp
Apache License 2.0
24 stars 17 forks source link

Login issue #372

Closed hcfw007 closed 2 years ago

hcfw007 commented 2 years ago

Sometimes we cannot login after scan:

18:26:59 VERB WhatsAppManager start() whatsapp.initialize() done.
18:26:59 ERR Config ###########################
18:26:59 ERR Config Wechaty unhandledRejection: Error: Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
    at async Client.getContacts (/xiaoju-bot/node_modules/@juzi/whatsapp-web.js/src/Client.js:673:24)
    at async Manager.syncContactOrRoomList (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/manager.js:171:29)
    at async LoginEventHandler.onWhatsAppReady (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/whatsapp/event-handler/login-event-handler.js:55:35) [object Promise]
18:26:59 ERR Config ###########################
18:26:59 ERR Config ###########################
18:26:59 ERR Config unhandledRejection: Error: Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34 [object Promise]
18:26:59 ERR Config ###########################
18:26:59 ERR Config process.on(unhandledRejection) promise.catch(Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34)
Config Error: Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
    at async Client.getContacts (/xiaoju-bot/node_modules/@juzi/whatsapp-web.js/src/Client.js:673:24)
    at async Manager.syncContactOrRoomList (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/manager.js:171:29)
    at async LoginEventHandler.onWhatsAppReady (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/whatsapp/event-handler/login-event-handler.js:55:35)
18:26:59 ERR Config process.on(unhandledRejection) promise.catch(Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34)
Config Error: Evaluation failed: TypeError: Cannot read property 'map' of undefined
    at Object.window.WWebJS.getContacts (__puppeteer_evaluation_script__:381:25)
    at __puppeteer_evaluation_script__:2:34
    at ExecutionContext._evaluateInternal (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async ExecutionContext.evaluate (/xiaoju-bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)
    at async Client.getContacts (/xiaoju-bot/node_modules/@juzi/whatsapp-web.js/src/Client.js:673:24)
    at async Manager.syncContactOrRoomList (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/manager.js:171:29)
    at async LoginEventHandler.onWhatsAppReady (/xiaoju-bot/node_modules/wechaty-puppet-whatsapp/dist/cjs/src/whatsapp/event-handler/login-event-handler.js:55:35)
(node:9) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
hcfw007 commented 2 years ago

375