NapNeko / NapCatQQ

现代化的基于 NTQQ 的 Bot 协议端实现
https://napcat.napneko.icu
Other
2.62k stars 190 forks source link

[BUG] onebot启动异常,客户端连接不上 #423

Closed xrzxrzx closed 1 month ago

xrzxrzx commented 1 month ago

系统版本

win11 23h2

QQNT 版本

9.9.15-28060

NapCat 版本

2.6.16

OneBot 客户端

edge

发生了什么?

客户端无法连接至napcat的onebot,查看日志文件后发现onebot启动出现异常,但不知道如何解决 111

如何复现

正常启动 这是onebot的配置文件

"http": { "enable": false, "host": "", "port": 3000, "secret": "", "enableHeart": false, "enablePost": false, "postUrls": [] }, "ws": { "enable": true, "host": "127.0.0.1", "port": 3001 }, "reverseWs": { "enable": false, "urls": [] }, "GroupLocalTime": { "Record": false, "RecordList": [] }, "debug": false, "heartInterval": 30000, "messagePostFormat": "array", "enableLocalFile2Url": true, "musicSignUrl": "", "reportSelfMessage": false, "token": "" }

期望的结果?

客户端能正常访问onebot

NapCat 运行日志

2024-10-04 15:37:29 [DEBUG] () | [Core] [Config] 配置文件C:\Users\xrzxr\Documents\plugins\NapCat.Framework\config\napcat_3406515483.json加载 {"fileLog":true,"consoleLog":true,"fileLogLevel":"debug","consoleLogLevel":"info"} 
2024-10-04 15:37:29 [DEBUG] () | [Core] [Config] 配置文件C:\Users\xrzxr\Documents\plugins\NapCat.Framework\config\onebot11_3406515483.json加载 {"http":{"enable":false,"host":"","port":3000,"secret":"","enableHeart":false,"enablePost":false,"postUrls":[]},"ws":{"enable":true,"host":"127.0.0.1","port":3001},"reverseWs":{"enable":false,"urls":[]},"GroupLocalTime":{"Record":false,"RecordList":[]},"debug":false,"heartInterval":30000,"messagePostFormat":"array","enableLocalFile2Url":true,"musicSignUrl":"","reportSelfMessage":false,"token":""} 
2024-10-04 15:37:29 [INFO] () | [Notice] [OneBot11] 
    HTTP服务 未启动, :3000
    HTTP上报服务 未启动, 上报地址: 
    WebSocket服务 已启动, 127.0.0.1:3001
    WebSocket反向服务 未启动, 反向地址:  
2024-10-04 15:37:29 [INFO] () | [OneBot] [WebSocket Server] Server Started undefined:undefined 
2024-10-04 15:37:29 [DEBUG] () | 加载56个群组缓存完成 
2024-10-04 15:37:29 [INFO] () | [NapCat] [WebUi] Current WebUi is running at http://0.0.0.0:6099 
2024-10-04 15:37:29 [INFO] () | [NapCat] [WebUi] Login Token is dhjz543x16b 
2024-10-04 15:37:29 [INFO] () | [NapCat] [WebUi] WebUi User  Panel Url: http://0.0.0.0:6099/webui?token=dhjz543x16b 
2024-10-04 15:37:29 [INFO] () | [NapCat] [WebUi] WebUi Local Panel Url: http://127.0.0.1:6099/webui?token=dhjz543x16b 
2024-10-04 15:37:30 [INFO] 拉链(3406515483) | 接收 <- 群聊 (群 551688531 的 1181866151) S🌟E🌟X! 
2024-10-04 15:37:30 [DEBUG] 拉链(3406515483) | 消息时间1728027441早于启动时间1728027449.5,忽略上报 
2024-10-04 15:37:30 [INFO] 拉链(3406515483) | 接收 <- 群聊 (群 599181940 的 1047446835) 唱片店老板娘.jpg 
2024-10-04 15:37:30 [DEBUG] 拉链(3406515483) | 消息时间1728027435早于启动时间1728027449.5,忽略上报 
2024-10-04 15:37:30 [INFO] 拉链(3406515483) | 接收 <- 临时消息 (0) 今天是十月四日,是千反田爱瑠的生日,祝小千生日快乐!私きに 
2024-10-04 15:37:30 [DEBUG] 拉链(3406515483) | 消息时间1728004175早于启动时间1728027449.5,忽略上报 
2024-10-04 15:37:32 [INFO] 拉链(3406515483) | [NapCat] [WebUi] WebUi Publish Panel Url: http://120.228.124.96:6099/webui/?token=dhjz543x16b

OneBot 客户端运行日志

No response

MliKiowa commented 1 month ago

websocket的口 你浏览器能直接访问吗? 你得开http口

MliKiowa commented 1 month ago

如果还有问题 请前往交流群询问