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

使用命令”订阅列表“,提示”错误码: -403, 信息: 访问权限不足“ #11

Closed
cj1357 opened this issue Jun 23, 2023 · 3 comments

Comments

@cj1357
Copy link

cj1357 commented Jun 23, 2023

image

报错代码:
06-23 21:44:38 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list)
06-23 21:44:39 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list) running complete
06-23 21:44:39 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list) failed.
Traceback (most recent call last):
File "/home/zhenxun_bot/bot.py", line 24, in
nonebot.run()
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/init.py", line 309, in run
get_driver().run(*args, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 198, in run
uvicorn.run(
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/message.py", line 467, in check_and_run_matcher
await _run_matcher(

File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/message.py", line 419, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 753, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 728, in simple_run
await handler(
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/dependencies/init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot_plugin_blive_danmaku/command/sub/sub_list.py", line 21, in _
user = await get_user_info(sub.uid, reqtype="web", proxies=None)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/user/init.py", line 12, in get_user_info
return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/utils/init.py", line 98, in get
return await request("GET", url, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/utils/init.py", line 89, in request
raise ResponseCodeError(
bilireq.exceptions.ResponseCodeError: 错误码: -403, 信息: 访问权限不足

@zangxx66
Copy link
Owner

B站那边的报错,应该是添加了新的参数做校验

@zangxx66
Copy link
Owner

新版本已更新依赖

@cj1357
Copy link
Author

cj1357 commented Jun 25, 2023

没问题了😺

@cj1357 cj1357 closed this as completed Jun 25, 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

2 participants