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

websocket监听的路径与CQHTTP原版不同,导致插件无法移植 #33

Closed
wpcwzy opened this issue Aug 10, 2020 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@wpcwzy
Copy link

wpcwzy commented Aug 10, 2020

在CQHTTP的CQHTTP的api说明中,CQHTTP会同时监听/api /event 和 / 三个路径,而 / 路径可以处理event和api的所有请求。
但是经测试,cqhttp-mirai在 / 路径上请求时只能获得/event信息,/api会被原样返回无法执行,导致插件无法正常迁移。
希望能修复这个问题或提供一些解决方法。感谢!

@wpcwzy
Copy link
Author

wpcwzy commented Aug 11, 2020

经过测试后发现,您的cqhttp-mirai只能单独处理API或监听事件,而CQHTTP原版这两个操作可以同时进行。个人认为是WebsocketServer.kt中第106 - 107行造成的。
电脑上无JDK10环境无法测试,如有纰漏还请谅解
谢谢!

@yyuueexxiinngg yyuueexxiinngg added the bug Something isn't working label Aug 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants