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

添加b站订阅报错 #622

Open
2 tasks
Anarrogantcat opened this issue Sep 9, 2024 · 0 comments
Open
2 tasks

添加b站订阅报错 #622

Anarrogantcat opened this issue Sep 9, 2024 · 0 comments

Comments

@Anarrogantcat
Copy link

环境

  • nonebot-bison 版本:
  • nonebot 版本:
  • 安装方式:(以下方式的一种或者其他方式)
    通过 nb-cli 安装
  • 操作系统:win11

问题

日志

09-09 09:42:28 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_bison.sub_manager, lineno=19) failed.
Traceback (most recent call last):
File "", line 17, in
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot_init_.py", line 335, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 674, in run_until_complete
self.run_forever()
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 1986, in _run_once
handle._run()
File "C:\Users\Jianr\AppData\Local\Programs\Python\Python312\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(

File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot\dependencies_init
.py", line 94, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot_bison\sub_manager\add_sub.py", line 84, in got_id
name = await check_sub_target(state["platform"], raw_id_text)
File "C:\Users\Jianr\Documents\NoneBot2.venv\Lib\site-packages\nonebot_bison\apis.py", line 9, in check_sub_target
scheduler = scheduler_dict[scheduler_conf_class]
KeyError: <class 'nonebot_bison.platform.bilibili.scheduler.BilibiliSite'>

请在这里粘贴你的日志
  • 我搜索过了 issue,但是并没有发现过与我类似的问题
  • 我确认在日志中去掉了敏感信息
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

1 participant