koishijs / koishi-plugin-gocqhttp

gocqhttp 启动器插件
GNU Affero General Public License v3.0
21 stars 7 forks source link

Bug: gocqhttp 连接 ws 反向出错 #19

Closed Kabuda-czh closed 1 year ago

Kabuda-czh commented 1 year ago

Describe the bug

2023-05-09 10:24:49 [W] gocqhttp 连接到反向WebSocket Universal服务器 ws://127.0.0.1:5140/onebot 时出现错误: dial tcp 127.0.0.1:5140: connectex: No connection could be made because the target machine actively refused it.

Steps to reproduce

在更新最新版 onebot 5.7.0gocqhttp 3.5.1 的时候会报错 且 onebot 显示已经连接, 实质上是没有正确连接上

Expected behavior

正确连接并能使用

Screenshots

No response

Versions

Additional context

No response

Kabuda-czh commented 1 year ago

补充: 将 gocqhttp 版本降至 3.5.0 就正常使用了

shigma commented 1 year ago

https://github.com/koishijs/koishi-plugin-gocqhttp/pull/18

我也没看出来哪边改出问题了,能发下配置(全局配置的网络部分和插件配置)吗?

Kabuda-czh commented 1 year ago

koishi.ymlhost 配置项的 localhost 更改为 127.0.0.1 就可以使用