Mrs4s / go-cqhttp

cqhttp的golang实现,轻量、原生跨平台.
GNU Affero General Public License v3.0
10.41k stars 1.63k forks source link

[Bug]: T544获取失败 & 滑条捕捉失败 #2138

Closed Kizuna-AII closed 1 year ago

Kizuna-AII commented 1 year ago

请确保您已阅读以上注意事项,并勾选下方的确认框。

go-cqhttp 版本

v1.0.1

运行环境

Windows (64)

运行架构

AMD64

连接方式

WebSocket (反向)

使用协议

3 | MacOS

重现步骤

使用以往正常的登录方式: .\go-cqhttp.exe -update-protocol -c config_1.yml -D

期望的结果是什么?

正常登录

实际的结果是什么?

首先提示"[ERROR]: 获取T544时出现问题",具体的报错原因是" wsarecv: An existing connection was forcibly closed by the remote host.",这似乎与 #2073 的问题并不一致 之后出现滑条验证码时无法通过自动的方式捕捉ticket,打开链接后浏览器显示: Web server is down Error code 521 Visit [cloudflare.com](https://www.cloudflare.com/5xx-error-landing?utm_source=errorcode_521&utm_campaign=captcha.go-cqhttp.org) for more information. 2023-05-10 03:35:46 UTC captcha.go-cqhttp.org Host Error 而用手动方式在浏览器滑条验证之后并没有出现可以复制的ticket(也许是我不清楚该如何找到该ticket) 我已经尝试在Linux与Windows下均进行了尝试,也尝试了不同的protocol,都存在该问题 我猜测是否是go-cqhttp的web服务出现了问题呢?

简单的复现代码/链接(可选)

No response

日志记录(可选)

[2023-05-10 11:35:28] [INFO]: 当前版本:v1.0.1
[2023-05-10 11:35:28] [WARNING]: 已开启Debug模式.
[2023-05-10 11:35:28] [INFO]: 将使用 device.json 内的设备信息运行Bot.
[2023-05-10 11:35:28] [INFO]: Bot将在5秒后登录并开始信息处理, 按 Ctrl+C 取消.
[2023-05-10 11:35:33] [INFO]: 开始尝试登录并同步消息...
[2023-05-10 11:35:33] [INFO]: 使用协议: MacOS 5.8.9
[2023-05-10 11:35:33] [INFO]: 正在检查协议更新...
[2023-05-10 11:35:34] [INFO]: Protocol -> connect to server: [::ffff:180.102.191.69]:80
[2023-05-10 11:35:34] [DEBUG]: fallback to remote T544Signer v5.8.9
[2023-05-10 11:35:34] [ERROR]: 获取T544时出现问题: Post "https://captcha.go-cqhttp.org/sdk/dandelion/energy": read tcp [240e:464:47a4:15d4:2c1e:7959:af83:3c48]:2440->[2606:4700:3034::ac43:a3df]:443: wsarecv: An existing connection was forcibly closed by the remote host.
[2023-05-10 11:35:34] [DEBUG]: Protocol -> rev pkt: wtlogin.login seq: 13878
[2023-05-10 11:35:34] [WARNING]: 登录需要滑条验证码, 请验证后重试.
[2023-05-10 11:35:34] [WARNING]: 请选择提交滑块ticket方式:
[2023-05-10 11:35:34] [WARNING]: 1. 自动提交
[2023-05-10 11:35:34] [WARNING]: 2. 手动抓取提交
[2023-05-10 11:35:34] [WARNING]: 请输入(1 - 2):
1
[2023-05-10 11:35:38] [WARNING]: 请前往该地址验证 -> https://captcha.go-cqhttp.org/captcha?id=JtgqsBHr&style=simple&aid=16&uin=3031813339&sid=457920863503323399&cap_cd=wyUHWxV_wPML2BU_UKNlHk_Nqdiu6E9_qZwyL2GXDx9e4fe1vG7YZg**&clientype=1&apptype=2
[2023-05-10 11:35:39] [DEBUG]: 获取 Ticket 时出现错误: Get "https://captcha.go-cqhttp.org/captcha/ticket?id=JtgqsBHr": read tcp [240e:464:47a4:15d4:2c1e:7959:af83:3c48]:2444->[2606:4700:3034::ac43:a3df]:443: wsarecv: An existing connection was forcibly closed by the remote host.
[2023-05-10 11:35:40] [DEBUG]: 获取 Ticket 时出现错误: Get "https://captcha.go-cqhttp.org/captcha/ticket?id=JtgqsBHr": read tcp [240e:464:47a4:15d4:2c1e:7959:af83:3c48]:2446->[2606:4700:3034::ac43:a3df]:443: wsarecv: An existing connection was forcibly closed by the remote host.
[2023-05-10 11:35:41] [DEBUG]: 获取 Ticket 时出现错误: Get "https://captcha.go-cqhttp.org/captcha/ticket?id=JtgqsBHr": read tcp [240e:464:47a4:15d4:2c1e:7959:af83:3c48]:2447->[2606:4700:3034::ac43:a3df]:443: wsarecv: An existing connection was forcibly closed by the remote host.
[2023-05-10 11:35:43] [DEBUG]: 获取 Ticket 时出现错误: Get "https://captcha.go-cqhttp.org/captcha/ticket?id=JtgqsBHr": read tcp [240e:464:47a4:15d4:2c1e:7959:af83:3c48]:2451->[2606:4700:3034::ac43:a3df]:443: wsarecv: An existing connection was forcibly closed by the remote host.

补充说明(可选)

No response

awa21zaici commented 1 year ago

同样的问题

awa21zaici commented 1 year ago

已解决,删除device重新生成后把protocol改成2,扫码登上了

Kizuna-AII commented 1 year ago

感谢,能够登录了。并且可以在Windows本机上生成device.json和session.token之后传到云端Linux服务器上直接登录。 不过滑条捕捉的问题仍然存在,暂时不close。

scriptxiaozi commented 1 year ago

Android watch 协议好像也登不上了,没有扫码登录选项,获取T544时出现问题

Dragon-ts commented 1 year ago

Android watch 协议好像也登不上了,没有扫码登录选项,获取T544时出现问题

是这样的,而且现在滑条验证进不去了,显示ERROR521