yyuueexxiinngg / onebot-kotlin

OneBot标准的Kotlin实现及mirai插件 - 原cqhttp-mirai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]使用mcl进行操作的,升级到最新版的2.0beta后,报错上报的HTTP无法解析【已解决】

friend-nicen opened this issue · comments

commented

【已解决】存在相同的进程占用了端口。

使用mcl进行操作的,升级到最新版的2.0beta后,报错上报的HTTP无法解析

HTTP调试如下:

POST http://1.15.***.69:5701/send_private_msg
Content-Type: application/json;charset=UTF-8

{"user_id": "1747111677","message": "hello"}

结果:

HTTP/1.1 200 OK
Content-Length: 57
Content-Type: application/json; charset=UTF-8
Connection: keep-alive

{
"status": "failed",
"retcode": 103,
"data": null,
"echo": null
}

GET访问结果如下

http://1.15.***.69:5701/send_private_msg?user_id=1747111677&message=hello

{
"status": "failed",
"retcode": 103,
"data": null,
"echo": null
}

控制台报错:

2022-04-05 16:32:44 E/OneBot: 解析HTTP上报返回数据成json失败
2022-04-05 16:32:47 V/Bot.179106735: [龚州中学同学群(832062986)] CHENQIUXING.(2562885956) -> [mirai:quote:[1282967],
2022-04-05 16:33:07 E/OneBot: 解析HTTP上报返回数据成json失败

版本

onebot-mirai-0.3.4-all.jar
mirai-console-2.0 beta2

16:39:23 [INFO] Verifying "net.mamoe:mirai-console" v2.10.1
16:39:25 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.10.1
16:39:25 [INFO] Verifying "net.mamoe:mirai-core-all" v2.10.1
16:39:26 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2

commented

使用mcl进行操作的,升级到最新版的2.0beta后,报错上报的HTTP无法解析

HTTP调试如下:

POST http://1.15.***.69:5701/send_private_msg Content-Type: application/json;charset=UTF-8

{"user_id": "1747111677","message": "hello"}

结果:

HTTP/1.1 200 OK Content-Length: 57 Content-Type: application/json; charset=UTF-8 Connection: keep-alive

{ "status": "failed", "retcode": 103, "data": null, "echo": null }

GET访问结果如下

http://1.15.***.69:5701/send_private_msg?user_id=1747111677&message=hello

{ "status": "failed", "retcode": 103, "data": null, "echo": null }

控制台报错:

2022-04-05 16:32:44 E/OneBot: 解析HTTP上报返回数据成json失败 2022-04-05 16:32:47 V/Bot.179106735: [龚州中学同学群(832062986)] CHENQIUXING.(2562885956) -> [mirai:quote:[1282967], 2022-04-05 16:33:07 E/OneBot: 解析HTTP上报返回数据成json失败

版本

onebot-mirai-0.3.4-all.jar mirai-console-2.0 beta2

16:39:23 [INFO] Verifying "net.mamoe:mirai-console" v2.10.1 16:39:25 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.10.1 16:39:25 [INFO] Verifying "net.mamoe:mirai-core-all" v2.10.1 16:39:26 [INFO] Verifying "org.itxtech:mcl-addon" v1.2.2