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

It reports errors when the room delete one member. #1415

Closed
zhoumh1988 opened this Issue Jun 29, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@zhoumh1988
Copy link

zhoumh1988 commented Jun 29, 2018

0|mybot    | 16:55:04 WARN Room find() got more than one(2) result
0|mybot    | 16:55:04 WARN PadchatRpc WXAddChatRoomMember() status = 0 but message is not OK:
0|mybot    | MemberList are wrong
0|mybot    | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
0|mybot    | Error: WXDeleteChatRoomMember error! canot get result from websocket server
0|mybot    |     at PadchatManager.<anonymous> (/Users/zhouminghua/Documents/mp/puppetpadchat/node_modules/wechaty/dist/src/puppet-padchat/padchat-rpc.js:655:23)
0|mybot    |     at Generator.next (<anonymous>)
0|mybot    |     at fulfilled (/Users/zhouminghua/Documents/mp/puppetpadchat/node_modules/wechaty/dist/src/puppet-padchat/padchat-rpc.js:4:58)
0|mybot    |     at process._tickCallback (internal/process/next_tick.js:68:7)

My code:

    if (/out/.test(content) && room && room.id == 'roomid') {
        await room.say("Remove from the room", sender);
        await room.del(sender);
        return;
    }
@zhoumh1988

This comment has been minimized.

Copy link

zhoumh1988 commented Jun 29, 2018

Beacuse the room is not mine. My mistake

@zhoumh1988 zhoumh1988 closed this Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment