-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error: Unexpected server response: 404 #124
Comments
麻烦提供一下 mirai-api-http 和 mirai-js 的版本号,以及 mirai-api-http 的配置文件。 |
尝试 POST /sendFriendMessage 来定位问题,不需要带参数,看一下 status code 是 404 还是 400。 |
已解决,原因是配置文件中未开启websocket,我以为http和ws只需要二选一即可 |
是的,需要开启 http 和 ws 这两个 adaptor。 |
我还有个问题,在 |
没有相关的处理,这是因为 mirai-api-http v1.x 中并没有 adaptor 的概念,ws 和 http 默认开放在同一个端口。 在 mirai-js 适配 v2.x 时,没有做改动。 如果要分开,为了将来的扩展性,可能要重新抽象一些东西。 |
好的 |
在发过一条消息过后,报错,之后无法发送消息
代码:
The text was updated successfully, but these errors were encountered: