-
@test.handle()
async def test_handler(bot: Bot):
await bot.call_api("set_group_sign", group_id="xx马赛克xxx") 这是代码 11-17 02:07:25 [DEBUG] nonebot | OneBot V11 | Calling API send_group_sign
11-17 02:07:25 [INFO] nonebot | Matcher(type='message', module=src.plugins.scheduler_plugin.scheduler, lineno=63) running complete
11-17 02:07:25 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.scheduler_plugin.scheduler, lineno=63) failed.
Traceback (most recent call last):
File "<string>", line 15, in <module>
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\__init__.py", line 337, in run
get_driver().run(*args, **kwargs)
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 188, in run
uvicorn.run(
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\uvicorn\main.py", line 579, in run
server.run()
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "I:\python\Python312\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
File "I:\python\Python312\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "I:\python\Python312\Lib\asyncio\base_events.py", line 674, in run_until_complete
self.run_forever()
File "I:\python\Python312\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "I:\python\Python312\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "I:\python\Python312\Lib\asyncio\base_events.py", line 1987, in _run_once
handle._run()
File "I:\python\Python312\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\utils.py", line 254, in run_coro_with_shield
return await coro
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\message.py", line 506, in check_and_run_matcher
await _run_matcher(
> File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\message.py", line 458, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 900, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 837, in simple_run
await handler(
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\dependencies\__init__.py", line 113, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "H:\pythonProject\Nonebot\Nonebot\src\plugins\scheduler_plugin\scheduler.py", line 68, in test_handler
await bot.call_api("send_group_sign", group_id="xxx马赛克xxx")
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\internal\adapter\bot.py", line 176, in call_api
raise exception
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\internal\adapter\bot.py", line 128, in call_api
result = await self.adapter._call_api(self, api, **data)
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 175, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "H:\pythonProject\Nonebot\Nonebot\.venv\Lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1200, data=None, message="TypeError: Can
not read properties of undefined (reading 'operation')\n at SendGroupSign._handle (file:///I:/bot/NapCat/LL/plugins/NapCatQQ/na
pcat.mjs:49337:47)\n at SendGroupSign.websocketHandle (file:///I:/bot/NapCat/LL/plugins/NapCatQQ/napcat.mjs:46806:34)\n at p
rocess.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async OB11ActiveWebSocketAdapter.handleMessage (
file:///I:/bot/NapCat/LL/plugins/NapCatQQ/napcat.mjs:32037:21)", wording="TypeError: Cannot read properties of undefined (reading
'operation')\n at SendGroupSign._handle (file:///I:/bot/NapCat/LL/plugins/NapCatQQ/napcat.mjs:49337:47)\n at SendGroupSign.w
ebsocketHandle (file:///I:/bot/NapCat/LL/plugins/NapCatQQ/napcat.mjs:46806:34)\n at process.processTicksAndRejections (node:int
ernal/process/task_queues:95:5)\n at async OB11ActiveWebSocketAdapter.handleMessage (file:///I:/bot/NapCat/LL/plugins/NapCatQQ/napcat.mjs:32037:21)", echo='1') |
Beta Was this translation helpful? Give feedback.
Answered by
MliKiowa
Nov 17, 2024
Replies: 1 comment 2 replies
-
哦 我知道了 你这个QQ版本应该不对 是什么版本的 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
看release里面的提示 使用29456 最新版暂时没空适配