SK-415 / HarukaBot

将 B 站的动态和直播信息推送至 QQ,基于 NoneBot2 开发
https://haruka-bot.sk415.icu
GNU Affero General Public License v3.0
818 stars 112 forks source link

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

Open yutou925 opened 9 months ago

yutou925 commented 9 months ago

运行环境

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
EventHorizonV commented 9 months ago

+1

Nanxi-su commented 9 months ago

蹲一波

EventHorizonV commented 9 months ago

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

IPlayForHer commented 9 months ago

IPlayForHer commented 9 months ago

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

qinghlh commented 9 months ago

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

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

EventHorizonV commented 9 months ago

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

感谢大佬🙏

MiKayule commented 9 months ago

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

感谢大佬🙏

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

IPlayForHer commented 9 months ago

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

horseajin commented 9 months ago

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

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

oringe-1 commented 9 months ago

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

重新安装了库还是有问题

IPlayForHer commented 9 months ago

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

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: @.***>

Cxyofficial commented 9 months ago

怎么更新啊?

Book-fall2wish commented 9 months ago

我晚点看看,可能官方有风控修改 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

hakureireimusama commented 9 months ago

今天发现又不行了

zangxx66 commented 9 months ago

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

ly0koS commented 8 months ago

问题还是存在