Skip to content
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

bot.Room.create报错: ERR Room create() exception: UNKNOWN_PACKAGE #185

Open
zhaozengbo228 opened this issue Aug 7, 2019 · 1 comment

Comments

@zhaozengbo228
Copy link

重要:请不要删除模板自行填写,所有不按照模板填写的issue,我们将不会处理。

0. 发 Issue 指南

  1. 请运行下面的命令,看问题是否可以被解决:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. 请在 FAQ 清单 看是否已有解决办法。

  2. 请先在issue 中搜关键信息,确认你要发的内容和之前的issue 不重复。

1. 提供你的包版本信息

  • wechaty 版本:0.26.1
  • wechaty-puppet-padpro 版本:0.2.1
  • node 版本: v10.16.0
  • 你使用的操作系统: windows 10

2. Bug 描述

调用bot.Room.create,报错
17:58:31 WARN sendShort receive unknown package: [126] 7e0ffffffff3000000009642180d000000005b12f687450000a90500 [��E �║ ] B
17:58:31 ERR Room create() exception: UNKNOWN_PACKAGE
UNKNOWN_PACKAGE
17:58:32 INFO PadproManager Connection has problem, reset self to recover the connection.
17:58:32 INFO CacheManager release()
17:58:32 INFO CacheManager release()
17:58:32 INFO WechatGateway stop()
17:58:32 INFO WechatGateway initLongSocket() connection to wechat long host server: 163.177.81.141 ended.
17:58:32 INFO WechatGateway stop() finished
17:58:32 INFO WechatGateway init(puppet_padpro_8owoml2onkuw9h39, padpro.botorange.com:6666, undefined)
17:58:32 INFO WechatGateway initLongSocket() connection to wechat long host server: 163.177.81.141 closed.

3. 复现的步骤 (或者解决的步骤)

这一部分非常重要,如果你无法给出复现步骤,我们也很难提供相应的解决办法:

复现步骤中一定要给出复现代码

     const helperContactA = await bot.Contact.find({ name: 'a' })  // change 'lijiarui' to any contact in your wechat;
     const helperContactB = await bot.Contact.find({ name: 'b' })  // change 'juxiaomi' to any contact in your wechat;
    const contactList = [helperContactA, helperContactB]
    console.log('Bot', 'contactList: %s', contactList.join(','))
    const room = await bot.Room.create(contactList, `ding${number++}`);
    console.log('Bot', 'createDingRoom() new ding room created: %s', room)

4. 期待程序运行的结果

请用精简的语言描述你期待运行的结果

5. 程序实际运行的结果

请用精简的语言或者截图描述实际运行的结果(请不要在这里粘贴日志截图

6. 完整的日志信息:

通过WECHATY_LOG=silly设定环境变量,将设置log 等级为 silly,获取最详细的日志信息(默认log 等级为 info)
请提供完整的日志信息(不要只提供部分的日志截图,请复制粘贴日志内容!)

Show Logs
$ WECHATY_LOG=silly node yourbot.js

7. 其他信息

有相关bug 的背景信息,可以在这里说明

[bug]

@su-chang
Copy link
Member

su-chang commented Aug 7, 2019

我按照你给出的复现代码,没有复现出 调用bot.Room.create,报错 这个问题

我们这边猜测可能是创建群的次数过多,导致微信方面将机器人强制下线了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants