HarukaBot icon indicating copy to clipboard operation
HarukaBot copied to clipboard

【错误回报】-401 无法关注

Open yutou925 opened this issue 1 year ago • 17 comments

运行环境

win11

HarukaBot 版本

v1.6.0post5

go-cqhttp 版本

1.1.0

错误描述

无法使用关注功能

报错日志(如果有)

Message -260092053 from xxxx'帮助'
09-14 14:46:21 [INFO] nonebot | Event will be handled by Matcher(type='message', module=haruka_bot.utils, lineno=316)
09-14 14:46:21 [INFO] nonebot | Matcher(type='message', module=haruka_bot.utils, lineno=316) running complete
09-14 14:46:28 [SUCCESS] nonebot | OneBot V11 xxxxx| [message.private.friend]: Message -2022146051 from xxxxx'关注列表'
09-14 14:46:28 [INFO] nonebot | Event will be handled by Matcher(type='message', module=haruka_bot.utils, lineno=316)
09-14 14:46:28 [INFO] nonebot | Matcher(type='message', module=haruka_bot.utils, lineno=316) running complete
09-14 14:46:32 [SUCCESS] nonebot | OneBot V11 xxxxxx| [message.private.friend]: Message 510733895 from xxxx'
关注xxxxx'
09-14 14:46:32 [INFO] nonebot | Event will be handled by Matcher(type='message', module=haruka_bot.utils, lineno=316)
09-14 14:46:32 [INFO] nonebot | Matcher(type='message', module=haruka_bot.utils, lineno=316) running complete

yutou925 avatar Sep 14 '23 06:09 yutou925

+1

EventHorizonV avatar Sep 16 '23 13:09 EventHorizonV

蹲一波

Nanxi-su avatar Sep 16 '23 15:09 Nanxi-su

未知错误,请联系开发者反馈,错误内容: 错误码: -401, 信息: 非法访问

EventHorizonV avatar Sep 17 '23 10:09 EventHorizonV

IPlayForHer avatar Sep 18 '23 04:09 IPlayForHer

https://github.com/SK-415/bilireq/pull/27 更新请求库的UA以后解决了此问题

IPlayForHer avatar Sep 18 '23 04:09 IPlayForHer

https://github.com/SK-415/bilireq/pull/27 更新请求库的UA以后解决了此问题

+1,问题解决了!谢谢大佬

qinghlh avatar Sep 18 '23 15:09 qinghlh

https://github.com/SK-415/bilireq/pull/27 更新请求库的UA以后解决了此问题

感谢大佬🙏

EventHorizonV avatar Sep 18 '23 16:09 EventHorizonV

https://github.com/SK-415/bilireq/pull/27 更新请求库的UA以后解决了此问题

感谢大佬🙏

是通过在.env.*里面指定HARUKA_BROWSER_UA吗?我指定了HARUKA_BROWSER_UA之后并没有解决

MiKayule avatar Sep 18 '23 19:09 MiKayule

不是的,你去把我的那个bilireq 通过pip覆盖安装就行了

IPlayForHer avatar Sep 18 '23 19:09 IPlayForHer

不是的,你去把我的那个bilireq 通过pip覆盖安装就行了

大佬我去那个文件里按你写的改了,还是不行啊……

horseajin avatar Sep 26 '23 19:09 horseajin

不是的,你去把我的那个bilireq 通过pip覆盖安装就行了

重新安装了库还是有问题

oringe-1 avatar Sep 30 '23 13:09 oringe-1

我晚点看看,可能官方有风控修改

Cheers, YouTiao On 30 Sep 2023 at 11:06 PM +1000, xtl @.***>, wrote:

不是的,你去把我的那个bilireq 通过pip覆盖安装就行了 重新安装了库还是有问题 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

IPlayForHer avatar Sep 30 '23 15:09 IPlayForHer

怎么更新啊?

Cxyofficial avatar Oct 01 '23 03:10 Cxyofficial

我晚点看看,可能官方有风控修改 Cheers, YouTiao On 30 Sep 2023 at 11:06 PM +1000, xtl @.>, wrote: > 不是的,你去把我的那个bilireq 通过pip覆盖安装就行了 重新安装了库还是有问题 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.> root@8c046a51235b:/haruka_bot# pip install bilireq Requirement already satisfied: bilireq in /usr/local/lib/python3.10/site-packages (0.2.11) Requirement already satisfied: rsa>=4.9 in /usr/local/lib/python3.10/site-packages (from bilireq) (4.9) Requirement already satisfied: protobuf>=4.23.4 in /usr/local/lib/python3.10/site-packages (from bilireq) (4.24.3) Requirement already satisfied: grpcio>=1.56.2 in /usr/local/lib/python3.10/site-packages (from bilireq) (1.59.0) Requirement already satisfied: httpx in /usr/local/lib/python3.10/site-packages (from bilireq) (0.25.0) Requirement already satisfied: pyasn1>=0.1.3 in /usr/local/lib/python3.10/site-packages (from rsa>=4.9->bilireq) (0.5.0) Requirement already satisfied: httpcore<0.19.0,>=0.18.0 in /usr/local/lib/python3.10/site-packages (from httpx->bilireq) (0.18.0) Requirement already satisfied: certifi in /usr/local/lib/python3.10/site-packages (from httpx->bilireq) (2023.7.22) Requirement already satisfied: idna in /usr/local/lib/python3.10/site-packages (from httpx->bilireq) (3.4) Requirement already satisfied: sniffio in /usr/local/lib/python3.10/site-packages (from httpx->bilireq) (1.3.0) Requirement already satisfied: h11<0.15,>=0.13 in /usr/local/lib/python3.10/site-packages (from httpcore<0.19.0,>=0.18.0->httpx->bilireq) (0.14.0) Requirement already satisfied: anyio<5.0,>=3.0 in /usr/local/lib/python3.10/site-packages (from httpcore<0.19.0,>=0.18.0->httpx->bilireq) (3.7.1) Requirement already satisfied: exceptiongroup in /usr/local/lib/python3.10/site-packages (from anyio<5.0,>=3.0->httpcore<0.19.0,>=0.18.0->httpx->bilireq) (1.1.3) 还是有这问题 PUQR36 OAC4K)FQQ0)LHXF qqbot-qqbot-1 | [2023-10-02 19:27:43] [INFO]: 收到群 LDZ() 内 () 的消息: [CQ:at,qq=] 关注列表 (-) qqbot-qqbot-1 | 10-02 19:27:43 [SUCCESS] nonebot | OneBot V11 | [message.group.normal]: Message - from 1078206052@[群:] '[at:qq=] 关注列表' qqbot-qqbot-1 | 10-02 19:27:43 [INFO] nonebot | Event will be handled by Matcher(type='message', module=haruka_bot.utils, lineno=316) qqbot-qqbot-1 | [2023-10-02 19:27:44] [INFO]: 发送群 LDZ() 的消息: [{"type": ... (-197762187) qqbot-qqbot-1 | 10-02 19:27:44 [INFO] nonebot | Matcher(type='message', module=haruka_bot.utils, lineno=316) running complete qqbot-qqbot-1 | [2023-10-02 19:27:55] [INFO]: 收到群 LDZ() 内 () 的消息: [CQ:at,qq=] 关注 3494369332038563 (-1796085104) qqbot-qqbot-1 | 10-02 19:27:55 [SUCCESS] nonebot | OneBot V11 2214438158 | [message.group.normal]: Message -1796085104 from @[群:] '[at:qq=2214438158] 关注 3494369332038563' qqbot-qqbot-1 | 10-02 19:27:55 [INFO] nonebot | Event will be handled by Matcher(type='message', module=haruka_bot.utils, lineno=316) qqbot-qqbot-1 | [2023-10-02 19:27:55] [INFO]: 发送群 LDZ(*) 的消息: [{"type": ... (-470361594) qqbot-qqbot-1 | 10-02 19:27:55 [INFO] nonebot | Matcher(type='message', module=haruka_bot.utils, lineno=316) running complete

Book-fall2wish avatar Oct 02 '23 11:10 Book-fall2wish

今天发现又不行了

hakureireimusama avatar Oct 06 '23 09:10 hakureireimusama

猜测是获取uid用户信息的时候报错,用grpc协议好像可以绕过这个错误

zangxx66 avatar Oct 08 '23 08:10 zangxx66

问题还是存在

ly0koS avatar Oct 22 '23 11:10 ly0koS