Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yutou925 opened this issue Sep 14, 2023 · 17 comments
Open

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

yutou925 opened this issue Sep 14, 2023 · 17 comments

Comments

@yutou925
Copy link

运行环境

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
@FujiiTaki
Copy link

+1

@kure29
Copy link

kure29 commented Sep 16, 2023

蹲一波

@FujiiTaki
Copy link

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

@IPlayForHer
Copy link

@IPlayForHer
Copy link

IPlayForHer commented Sep 18, 2023

SK-415/bilireq#27
更新请求库的UA以后解决了此问题

@qinghlh
Copy link

qinghlh commented Sep 18, 2023

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

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

@FujiiTaki
Copy link

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

感谢大佬🙏

@MiKayule
Copy link

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

感谢大佬🙏

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

@IPlayForHer
Copy link

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

@horseajin
Copy link

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

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

@oringe-1
Copy link

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

重新安装了库还是有问题

@IPlayForHer
Copy link

IPlayForHer commented Sep 30, 2023 via email

@Cxyofficial
Copy link

怎么更新啊?

@Book-fall2wish
Copy link

Book-fall2wish commented Oct 2, 2023

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

今天发现又不行了

@zangxx66
Copy link

zangxx66 commented Oct 8, 2023

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

@ly0koS
Copy link

ly0koS commented Oct 22, 2023

问题还是存在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests