-
Notifications
You must be signed in to change notification settings - Fork 96
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
[BUG] bot私聊信息发不出来,并且导致程序崩溃 #25
Comments
未能复现成功 |
有发送内容和更多数据吗 |
发送内容是version,发送登录也是会这样(正常情况下应该返回一个登录链接) |
|
注意备份配置文件 这个需要重新配置 |
仍然出现这个问题 [UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "发送超时".] { Node.js v18.18.2 另外这个版本似乎webui有问题?在webui点添加按钮没反应,只能直接编辑json文件 |
另外还注意到一个情况就是刚登录成功时会出现下边的报错: 登录成功! 不知道跟这个有没有关系。 另外同时开启反向WebSocket监听和HTTP 事件上报后会出现在群里报刀后台会上报2次的问题,但关上反向ws又会导致在web端操作无法回报到群里,不知道有没有什么解决办法 |
这个版本webui变动了东西 |
看一下logs文件夹下的日志文件,里面有详细的发送日志 |
测一下新版本 https://github.com/NapNeko/NapCatQQ/actions/runs/9129426163 应该没有问题了 |
新版本不崩溃了,但还是会出现 |
https://github.com/NapNeko/NapCatQQ/actions/runs/9129426163 这个最新版 给一下日志 这都是2点钟老版本的日志了 现在看到用了不支持的api |
哦不好意思,上次试的时候好像下成旧版本了。新版本测试后发现同时开启http上报和反向ws的话群消息和私聊消息都能正常上报也可以正常返回消息,但是从web端查看时发现上报了2次(群内发一次报刀结果实际报了2刀同样的)但是只返回了一次反向ws消息。(见log1) |
ws那里使用了不受支持的api |
https://github.com/nonebot/aiocqhttp/blob/master/aiocqhttp/api_impl.py |
可以 |
ws消息上报和反向ws消息发送都正常了,感谢 |
系统版本
ubuntu
QQNT 版本
QQ_3.2.7_240428_amd64
NapCat 版本
1.3.3
OneBot 客户端
yobot_remix v4.0.2
发生了什么?
对bot私聊触发词后,bot返回的私聊信息发不出去,并且报错崩溃。但同时bot在群聊中能正常发出消息。
如何复现
1.使用反向WebSocket监听对接yobot
2.启用HTTP 事件上报,将yobot的默认页面设置为HTTP 事件上报地址
3.对bot私聊触发词version,或者任何其他触发词
期望的结果?
应在私聊中正常返回bot版本号,并且不崩溃
NapCat 运行日志
OneBot 客户端运行日志
The text was updated successfully, but these errors were encountered: