Skip to content

【bug】表情详情 原神启动 报错 #165

@Agnes4m

Description

@Agnes4m

目前测试到只有这个指令会报错表情详情 原神启动,其他正常

2025-06-13 16:22:07.529 | ERROR    | nonebot:_run_matcher:460 - Running AlconnaMatcher(type='', module=nonebot_plugin_memes.matchers.info, lineno=10) failed.
Traceback (most recent call last):

  File "/home/ubuntu/bot/nb2/bot.py", line 32, in <module>
    nonebot.run()
    │       └ <function run at 0x7f588e7e13a0>
    └ <module 'nonebot' from '/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/__init__.py'>

  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/__init__.py", line 337, in run
    get_driver().run(*args, **kwargs)
    │                 │       └ {}
    │                 └ ()
    └ <function get_driver at 0x7f588fda7b00>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/drivers/fastapi.py", line 187, in run
    uvicorn.run(
    │       └ <function run at 0x7f588aaba2a0>
    └ <module 'uvicorn' from '/home/ubuntu/myenv/lib/python3.12/site-packages/uvicorn/__init__.py'>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/uvicorn/main.py", line 577, in run
    server.run()
    │      └ <function Server.run at 0x7f588aa84cc0>
    └ <uvicorn.server.Server object at 0x7f5869031130>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/uvicorn/server.py", line 65, in run
    return asyncio.run(self.serve(sockets=sockets))
           │       │   │    │             └ None
           │       │   │    └ <function Server.serve at 0x7f588aa84d60>
           │       │   └ <uvicorn.server.Server object at 0x7f5869031130>
           │       └ <function run at 0x7f588fd73f60>
           └ <module 'asyncio' from '/usr/lib/python3.12/asyncio/__init__.py'>
  File "/usr/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           │      │   └ <coroutine object Server.serve at 0x7f58691fbd80>
           │      └ <function Runner.run at 0x7f588f549b20>
           └ <asyncio.runners.Runner object at 0x7f5876593170>
  File "/usr/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           │    │     │                  └ <Task pending name='Task-6' coro=<Server.serve() running at /home/ubuntu/myenv/lib/python3.12/site-packages/uvicorn/server.py...
           │    │     └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
           │    └ <uvloop.Loop running=True closed=False debug=False>
           └ <asyncio.runners.Runner object at 0x7f5876593170>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/utils.py", line 254, in run_coro_with_shield
    return await coro
                 └ <coroutine object check_and_run_matcher at 0x7f58608457a0>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/message.py", line 506, in check_and_run_matcher
    await _run_matcher(
          └ <function _run_matcher at 0x7f588e9905e0>
> File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/message.py", line 458, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
          │       │   │    │      │      │      └ {<function extract_session at 0x7f588bcd4360>: <nonebot.internal.params.DependencyCache object at 0x7f58603501d0>, <function ...
          │       │   │    │      │      └ <contextlib.AsyncExitStack object at 0x7f5861524d70>
          │       │   │    │      └ {'_prefix': {'command': None, 'raw_command': None, 'command_arg': None, 'command_start': None, 'command_whitespace': None}, '...
          │       │   │    └ PrivateMessageEvent(time=1749802912, self_id=2550131148, post_type='message', sub_type='friend', user_id=735803792, message_t...
          │       │   └ Bot(type='OneBot V11', self_id='2550131148')
          │       └ <function Matcher.run at 0x7f588e8244a0>
          └ AlconnaMatcher(type='', module=nonebot_plugin_memes.matchers.info, lineno=10)
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/matcher/matcher.py", line 926, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
          │    │          │    │      │      │      └ {<function extract_session at 0x7f588bcd4360>: <nonebot.internal.params.DependencyCache object at 0x7f58603501d0>, <function ...
          │    │          │    │      │      └ <contextlib.AsyncExitStack object at 0x7f5861524d70>
          │    │          │    │      └ {'_prefix': {'command': None, 'raw_command': None, 'command_arg': None, 'command_start': None, 'command_whitespace': None}, '...
          │    │          │    └ PrivateMessageEvent(time=1749802912, self_id=2550131148, post_type='message', sub_type='friend', user_id=735803792, message_t...
          │    │          └ Bot(type='OneBot V11', self_id='2550131148')
          │    └ <function Matcher.simple_run at 0x7f588e824400>
          └ AlconnaMatcher(type='', module=nonebot_plugin_memes.matchers.info, lineno=10)
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/matcher/matcher.py", line 863, in simple_run
    await handler(
          └ Dependent(call=_)
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/dependencies/__init__.py", line 113, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
                 │    │             │         │    │    │       └ {'matcher': AlconnaMatcher(type='', module=nonebot_plugin_memes.matchers.info, lineno=10), 'meme_name': '原神启动'}
                 │    │             │         │    │    └ <function _ at 0x7f5869266f20>
                 │    │             │         │    └ Dependent(call=_)
                 │    │             │         └ ~R
                 │    │             └ <class 'collections.abc.Awaitable'>
                 │    └ typing.Callable
                 └ <function cast at 0x7f588fd931a0>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_memes/matchers/info.py", line 94, in _
    await msg.finish()
          │   └ <function UniMessage.finish at 0x7f588976ee80>
          └ [Text(text='表情名:genshin_start\n关键词:"原神启动"\n需要图片数目:1\n需要文字数目:0 ~ 1\n默认文字:["原神,启动!"]\n表情预览:\n', styles={}), Image(id=None, url=...
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_alconna/uniseg/message.py", line 1413, in finish
    await self.send(target, bot, fallback, at_sender, reply_to, **kwargs)
          │    │    │       │    │         │          │           └ {}
          │    │    │       │    │         │          └ False
          │    │    │       │    │         └ False
          │    │    │       │    └ <FallbackStrategy.rollback: 'rollback'>
          │    │    │       └ None
          │    │    └ None
          │    └ <function UniMessage.send at 0x7f588976ede0>
          └ [Text(text='表情名:genshin_start\n关键词:"原神启动"\n需要图片数目:1\n需要文字数目:0 ~ 1\n默认文字:["原神,启动!"]\n表情预览:\n', styles={}), Image(id=None, url=...
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_alconna/uniseg/message.py", line 1401, in send
    res = await fn.send_to(target, bot, msg, **kwargs)
                │  │       │       │    │      └ {}
                │  │       │       │    └ [MessageSegment(type='text', data={'text': '表情名:genshin_start\n关键词:"原神启动"\n需要图片数目:1\n需要文字数目:0 ~ 1\n默认文字:["原神,启动!"]\n表情预览:\n'}...
                │  │       │       └ Bot(type='OneBot V11', self_id='2550131148')
                │  │       └ PrivateMessageEvent(time=1749802912, self_id=2550131148, post_type='message', sub_type='friend', user_id=735803792, message_t...
                │  └ <function Onebot11MessageExporter.send_to at 0x7f5889736520>
                └ <nonebot_plugin_alconna.uniseg.adapters.onebot11.exporter.Onebot11MessageExporter object at 0x7f5889705010>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot_plugin_alconna/uniseg/adapters/onebot11/exporter.py", line 181, in send_to
    return await bot.send(target, message, **kwargs)  # type: ignore
                 │   │    │       │          └ {}
                 │   │    │       └ [MessageSegment(type='text', data={'text': '表情名:genshin_start\n关键词:"原神启动"\n需要图片数目:1\n需要文字数目:0 ~ 1\n默认文字:["原神,启动!"]\n表情预览:\n'}...
                 │   │    └ PrivateMessageEvent(time=1749802912, self_id=2550131148, post_type='message', sub_type='friend', user_id=735803792, message_t...
                 │   └ <function Bot.send at 0x7f588e9934c0>
                 └ Bot(type='OneBot V11', self_id='2550131148')
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/adapters/onebot/v11/bot.py", line 237, in send
    return await self.__class__.send_handler(self, event, message, **kwargs)
                 │    │                      │     │      │          └ {}
                 │    │                      │     │      └ [MessageSegment(type='text', data={'text': '表情名:genshin_start\n关键词:"原神启动"\n需要图片数目:1\n需要文字数目:0 ~ 1\n默认文字:["原神,启动!"]\n表情预览:\n'}...
                 │    │                      │     └ PrivateMessageEvent(time=1749802912, self_id=2550131148, post_type='message', sub_type='friend', user_id=735803792, message_t...
                 │    │                      └ Bot(type='OneBot V11', self_id='2550131148')
                 │    └ <attribute '__class__' of 'object' objects>
                 └ Bot(type='OneBot V11', self_id='2550131148')
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/adapters/onebot/v11/bot.py", line 190, in send
    return await bot.send_msg(**params)
                 │              └ {'user_id': 735803792, 'message_type': 'private', 'message': [MessageSegment(type='text', data={'text': '表情名:genshin_start\n关...
                 └ Bot(type='OneBot V11', self_id='2550131148')
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/adapter/bot.py", line 176, in call_api
    raise exception
          └ ActionFailed(status='failed', retcode=1200, data=None, message='Timeout: NTEvent serviceAndMethod:NodeIKernelMsgService/sendM...
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/internal/adapter/bot.py", line 128, in call_api
    result = await self.adapter._call_api(self, api, **data)
                   │    │       │         │     │      └ {'user_id': 735803792, 'message_type': 'private', 'message': [MessageSegment(type='text', data={'text': '表情名:genshin_start\n关...
                   │    │       │         │     └ 'send_msg'
                   │    │       │         └ Bot(type='OneBot V11', self_id='2550131148')
                   │    │       └ <function Adapter._call_api at 0x7f588e9753a0>
                   │    └ Adapter(name='OneBot V11')
                   └ Bot(type='OneBot V11', self_id='2550131148')
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 175, in _call_api
    return handle_api_result(await self._result_store.fetch(seq, timeout))
           │                       │    │             │     │    └ 30.0
           │                       │    │             │     └ 386
           │                       │    │             └ <function ResultStore.fetch at 0x7f588e900b80>
           │                       │    └ <nonebot.adapters.onebot.store.ResultStore object at 0x7f588ff30bc0>
           │                       └ Adapter(name='OneBot V11')
           └ <function handle_api_result at 0x7f588e9913a0>
  File "/home/ubuntu/myenv/lib/python3.12/site-packages/nonebot/adapters/onebot/v11/utils.py", line 58, in handle_api_result
    raise ActionFailed(**result)
          │              └ {'status': 'failed', 'retcode': 1200, 'data': None, 'message': 'Timeout: NTEvent serviceAndMethod:NodeIKernelMsgService/sendM...
          └ <class 'nonebot.adapters.onebot.v11.exception.ActionFailed'>

nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1200, data=None, message='Timeout: NTEvent serviceAndMethod:NodeIKernelMsgService/sendMsg ListenerName:NodeIKernelMsgListener/onMsgInfoListUpdate EventRet:\n{\n    "result": 0,\n    "errMsg": ""\n}\n', wording='Timeout: NTEvent serviceAndMethod:NodeIKernelMsgService/sendMsg ListenerName:NodeIKernelMsgListener/onMsgInfoListUpdate EventRet:\n{\n    "result": 0,\n    "errMsg": ""\n}\n', echo='386')

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions