Skip to content

被移除群聊后登录bot会抛异常 #53

@shiyuanzheng

Description

@shiyuanzheng

ERR [Event] parse message error: TypeError: Cannot read properties of undefined (reading 'forEach') at WechatferryAgent.formatChatRoomInfo (file:///E:/dev_workspace/wechaty/node_modules/@wechatferry/agent/dist/index.mjs:566:18) at WechatferryAgent.getChatRoomInfo (file:///E:/dev_workspace/wechaty/node_modules/@wechatferry/agent/dist/index.mjs:361:17) at WechatferryAgent.getChatRoomMembers (file:///E:/dev_workspace/wechaty/node_modules/@wechatferry/agent/dist/index.mjs:369:27) at run (file:///E:/dev_workspace/wechaty/node_modules/@wechatferry/puppet/dist/index.mjs:1888:34) at RetryOperation._fn (file:///E:/dev_workspace/wechaty/node_modules/p-retry/index.js:55:26) at RetryOperation.attempt (E:\dev_workspace\wechaty\node_modules\retry\lib\retry_operation.js:116:8) at file:///E:/dev_workspace/wechaty/node_modules/p-retry/index.js:53:13 at new Promise (<anonymous>) at pRetry (file:///E:/dev_workspace/wechaty/node_modules/p-retry/index.js:31:9) at Proxy.updateRoomMemberListCache (file:///E:/dev_workspace/wechaty/node_modules/@wechatferry/puppet/dist/index.mjs:1895:12)

大概看了一下,是登录后重新拉取群聊的缓存,退出的群聊无法获取群员信息,从而产生了异常

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions