Closed huan closed 3 years ago
22:26:28 VERB Wechaty on(message, listener) registering... listenerCount: 2 22:26:28 VERB Room findAll({"topic":{}}) 22:26:28 VERB Puppet roomSearch({"topic":{}}) 22:26:28 VERB PuppetService roomList() 22:26:28 VERB StateSwitch <Wechaty> ready(off, noCross=false) 22:26:28 VERB StateSwitch <Wechaty> ready(off, noCross=false) 22:26:28 VERB Room findAll() rejected: 13 INTERNAL: Cannot read property 'getRoomIds' of undefined Error: 13 INTERNAL: Cannot read property 'getRoomIds' of undefined at Object.callErrorFromStatus (/home/friday/git/friday/node_modules/@grpc/grpc-js/build/src/call.js:31:26) at Object.onReceiveStatus (/home/friday/git/friday/node_modules/@grpc/grpc-js/build/src/client.js:179:52) at Object.onReceiveStatus (/home/friday/git/friday/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:336:141) at Object.onReceiveStatus (/home/friday/git/friday/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181) at /home/friday/git/friday/node_modules/@grpc/grpc-js/build/src/call-stream.js:145:78 at processTicksAndRejections (internal/process/task_queues.js:77:11) { code: 13, details: "Cannot read property 'getRoomIds' of undefined", metadata: Metadata { internalRepr: Map(1) { 'authorization' => [Array] }, options: {} } } Error: friday.Room return 0 members at countRoomMembers (file:///home/friday/git/friday/dist/src/status-page/count-room-members.js:15:15) at processTicksAndRejections (internal/process/task_queues.js:95:5) metrics { mo: 0, mt: 0 }
https://github.com/wechaty/friday/blob/18b90aeafd0b1d6fb9c38b58e7c6e16f351568f0/src/status-page/count-room-members.ts#L15-L16
Related code
https://github.com/wechaty/friday/blob/18b90aeafd0b1d6fb9c38b58e7c6e16f351568f0/src/status-page/count-room-members.ts#L15-L16