Comments (24)
运行一下 docker inspect bridge
看一下 Gateway 是不是确实是 172.17.0.1
from nonebot.
@richardchien 是的,我确认了,然后我也ping通了,但是就是连不上,我现在再全部重头来一遍试试。
from nonebot.
@LittleWhite-Carry 你把 JSON 配置文件里面重复的 key 删掉看下
from nonebot.
不行,我有个疑问ws_reverse_url
这个不填嘛? @richardchien
from nonebot.
@LittleWhite-Carry 填了 ws_reverse_api_url 和 ws_reverse_event_url 就可以不填那个
from nonebot.
连不上,有什么可能的原因嘛? @richardchien
from nonebot.
@LittleWhite-Carry 你发一下你现在的 CQHTTP 插件配置看看。当然也不排除是端口冲突的原因
from nonebot.
我觉得可能是端口冲突,CQHTTP插件配置在哪里? @richardchien
from nonebot.
@LittleWhite-Carry 酷Q 的 app/io.github.xxxxxapi/config/ 或者 data/app/io.github.xxxxxapi/config/
from nonebot.
这个config文件夹下就只有一个 qqid.json @richardchien
from nonebot.
@LittleWhite-Carry 对啊就是那个
from nonebot.
哦哦哦
{
"host": "[::]",
"port": 5700,
"use_http": true,
"ws_host": "[::]",
"ws_port": 6700,
"use_ws": false,
"ws_reverse_url": "",
"ws_reverse_reconnect_interval": 3000,
"post_url": "",
"access_token": "",
"secret": "",
"post_message_format": "string",
"serve_data_files": false,
"update_source": "github",
"update_channel": "stable",
"auto_check_update": false,
"auto_perform_update": false,
"show_log_console": true,
"log_level": "info",
"ws_reverse_api_url": "ws://172.17.0.1:8080/ws/api/",
"ws_reverse_event_url": "ws:/172.17.0.1/:8080/ws/event/",
"ws_reverse_reconnect_on_code_1000": true,
"use_ws_reverse": true
}
from nonebot.
@LittleWhite-Carry ws_reverse_event_url 没对(多了个 /
from nonebot.
from nonebot.
@LittleWhite-Carry 那换端口试试(另外,可以发一下 酷Q 刚启动时候的插件输出的日志,以及,可以把插件刚刚的 JSON 配置的 log_level 改成 debug
from nonebot.
只有event报错,然后error code 10065 @richardchien
from nonebot.
@LittleWhite-Carry 那你这个应该还是 ws_reverse_event_url 设置的问题
from nonebot.
好吧,都有问题,刚刚不小心吧api的url改了一下 @richardchien
from nonebot.
而且我现在重新弄了一遍,那个json文件就不出现了 @richardchien
from nonebot.
要不还是试试用 Windows 机器?
from nonebot.
买的服务器,只能带的动linux @richardchien
from nonebot.
能通信了,虽然现在通信内容好像有点问题,但是至少连上了。
具体做法就是在docker run
的时候加上 --network host
这个选项。例如
docker run --name=coolq --rm --network host -v /root/coolq-data:/home/user/coolq -e VNC_PASSWD=123456 -e COOLQ_ACCOUNT=123456 coolq/wine-coolq
这样的话,就不需要-p
端口映射项了
而且配置项里面的url
也都是127.0.0.1
@richardchien
from nonebot.
能通信了,虽然现在通信内容好像有点问题,但是至少连上了。
具体做法就是在
docker run
的时候加上--network host
这个选项。例如
docker run --name=coolq --rm --network host -v /root/coolq-data:/home/user/coolq -e VNC_PASSWD=123456 -e COOLQ_ACCOUNT=123456 coolq/wine-coolq
这样的话,就不需要
-p
端口映射项了而且配置项里面的
url
也都是127.0.0.1
@richardchien
可以分享一下配置吗?谢谢,我卡在这里很久了
from nonebot.
出现同样的问题,docker上的后台一直提示重连。--network host
这个选项加了可以解决问题。
from nonebot.
Related Issues (20)
- 请问如何在只是User is calling me的情况下保持会话? HOT 2
- scheduler与message_preprocessor不在同一个eventloop导致两者之间很难进行同步 HOT 6
- nonebot+cqhttp反向websocket 时出现错误: websocket: bad handshake HOT 8
- [提问]如何关闭heartbeat的logging HOT 6
- aget 无法发送prompt HOT 3
- 1.8.3移除`CommandSession.args`导致类 Shell 参数解析Command出错 HOT 2
- 以 node-onebot 为后端无法正确设置 `ctx['to_me']` HOT 5
- 加載“失敗”的插件注冊的命令仍然可用 HOT 1
- 考慮移除 sched HOT 1
- NLPSession无法处理被两个qq表情夹着的关键词 HOT 11
- 运行`nb run`命令后直接抛出`cannot import name 'WebSocketSetup' from 'nonebot.drivers' ` HOT 1
- say 和 echo失踪 HOT 3
- NLPSession在较长的句子中不能识别到关键词 HOT 2
- 1
- 关于Pyinstaller打包后的exe为什么会报错的解决方案【建议调整一部分代码】
- 启动时遇到ImportError HOT 2
- m1 运行报错cannot import name 'escape' from 'jinja2' HOT 9
- ImportError: cannot import name 'overrides' from 'nonebot.typing' HOT 1
- 无法正确识别“回复”类型消息中的指令 HOT 2
- 按组一同注册命令的关键词 内容 权限 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonebot.