-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Universal服务器 ws://127.0.0.1:8080/cqhttp/ws 时出现错误: websocket: bad handshake #682
Comments
我们在您的 Issue 中发现了如下问题:
请参照 相关教程 按照上述要求对 Issue 进行修改。 |
请查阅nonebot文档解决您的问题。 |
我是刚进go-cqhttp社区的新手,也遇到一样的问题,请教下 @Ink-33 ,nonenot文档在哪里可以查阅?先行感谢.... |
你用的什么后端 |
@Ink-33 您好!很高兴收到您的答复。
由于我对网络原理不是很熟练,对您的回复,我Google了一番,自行解决了问题。 我是把go-cqhttp用于cq-picsearcher-bot机器人搜图项目,cq-picsearcher-bot要求使用正向 ws 方式连接,我把反向ws 方式也配置上了。所有出现警告提示。 再次感谢。 |
请参考 |
我的问题已经解决啦,配置出了问题,在上面答复中有提到,再次感谢go-cqhttp项目和社区开发者们。 |
我也遇到了这个问题,然后我发现它应该是/ws/而不是/ws,之前用mirai会自动跳过去所以没问题 |
nonebot的问题 |
对了我用的是aiocqhttp |
最好检查下应用层或者ws链接写错没有 比如末尾少了/ |
把反向的注释掉了,然后出现这个 |
用不到就删掉,不要留着 |
注释完用不了了) |
|
在.yml里修改:
|
这个怎么解决呀,试了好多办法了,nonenot文档也找不到 |
如果使用onebot v12请换成v11 |
环境信息
go-cqhttp版本: 0.9.40-fix2
运行环境: windows
连接方式: 反向Websocket
使用协议: cqhttp
bug内容
连接到反向WebSocket Universal服务器 ws://127.0.0.1:8080/cqhttp/ws 时出现错误: websocket: bad handshake
复现方法
设置
ws_reverse_servers: [
{
enabled: true
reverse_url: ws://127.0.0.1:8080/cqhttp/ws
reverse_api_url: ws://you_websocket_api.server
reverse_event_url: ws://you_websocket_event.server
reverse_reconnect_interval: 3000
}
]
其余默认设置,启动报错,能够接收到qq消息
The text was updated successfully, but these errors were encountered: