`astrbot_plugin_temp_chat_fix`插件删除后日志还会报错
[2026-10-07 14:04:14.225] [Core] [ERRO] [v4.29.0-beta.1] [respond.stage:343]: Failed to send the message chain: chain = MessageChain(chain=[Plain(type=<ComponentType.Plain: 'Plain'>, text='在干嘛')], use_t2i_=None, use_markdown_=None, type=None), error = <ActionFailed status='failed', retcode=100, data=None, wording='cannot send to user 1731538334 in group 1075920323: no such temp session', echo={'seq': 1995}> Traceback (most recent call last): File "/AstrBot/astrbot/core/pipeline/respond/stage.py", line 341, in process await event.send(chain) File "/AstrBot/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py", line 191, in send await self.send_message( File "/AstrBot/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py", line 153, in send_message await cls._dispatch_send(bot, event, is_group, session_id, ret) File "/AstrBot/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py", line 114, in _dispatch_send await bot.send_private_msg( File "/AstrBot/data/plugins/astrbot_plugin_temp_chat_fix/main.py", line 52, in patched_call_action File "/usr/local/lib/python3.12/site-packages/aiocqhttp/init.py", line 236, in call_action return await self._api.call_action(action=action, **params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/AstrBot/data/plugins/astrbot_plugin_temp_chat_fix/main.py", line 52, in patched_call_action File "/usr/local/lib/python3.12/site-packages/aiocqhttp/api_impl.py", line 178, in call_action result = await self._wsr_api.call_action(action, **params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/AstrBot/data/plugins/astrbot_plugin_temp_chat_fix/main.py", line 52, in patched_call_action File "/usr/local/lib/python3.12/site-packages/aiocqhttp/api_impl.py", line 153, in call_action return _handle_api_result(await ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiocqhttp/api_impl.py", line 38, in _handle_api_result raise ActionFailed(result=result) aiocqhttp.exceptions.ActionFailed: <ActionFailed status='failed', retcode=100, data=None, wording='cannot send to user 1731538334 in group 1075920323: no such temp session', echo={'seq': 1995}> [2026-10-07 14:04:14.229] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> astrbot_plugin_recall_cancel - after_message_sent [2026-10-07 14:04:14.229] [Plug] [DBUG] [astrbot_plugin_recall_cancel.main:966]: [RecallCancel] 消息已发送,清理记录 | 消息ID: 1821895007 [2026-10-07 14:04:14.229] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> astrbot_plugin_rg2 - _on_message_sent [2026-10-07 14:04:14.229] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> astrbot_plugin_astrbot_enhance_mode - after_message_sent [2026-10-07 14:04:14.230] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> input_state_by_napcat - after_message_sent [2026-10-07 14:04:14.230] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> meme_manager - _after_message_sent_impl [2026-10-07 14:04:14.230] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> meme_manager - after_message_sent [2026-10-07 14:04:14.230] [Core] [DBUG] [pipeline.context_utils:98]: hook(OnAfterMessageSentEvent) -> astrbot - after_message_sent [2026-10-07 14:04:14.230] [Core] [DBUG] [pipeline.context_utils:98]:
bug提交也有对应模板请按照要求提交
结论:插件问题 —— 报错来自已删除的第三方插件 astrbot_plugin_temp_chat_fix,不是本体缺陷。
根因:该插件在 main.py:52 猴补丁了 aiocqhttp 的 call_action,删除时未在 terminate() 里还原,于是运行中的 bot 对象上仍留着旧包装,之后每次发送都会穿过那个已删除的文件路径。AstrBot 侧卸载时有调用 terminate()(astrbot/core/star/star_manager.py:1703 @ 42972e932),清理责任在该插件。(静态定位,未实机复现)
建议:重启 AstrBot 即可消除;并把这条反馈给 astrbot_plugin_temp_chat_fix 的仓库,请它在 terminate() 中还原 call_action。这次发送真正失败的原因是 no such temp session(QQ 临时会话失效,retcode 100),与插件无关 —— 插件只是恰好在调用链上。
需要补充的信息:本 issue 未按 bug 模板填写,缺少复现步骤与部署方式。
建议标签:area:core
🤖 AI 辅助分析。
首先 插件问题建议向对应仓库发issue 其次 贴日志时不要暴露个人隐私 包括qq号
那个插件主要都删了
那个插件主要都删了
插件自己赖着不走那也没法,你应该去插件仓库提issue,本体哪怕反馈bug也应该按照模板填写要不然以后没人修bug别怪没提醒
@mjy1113451 重启了吗 问过ai了吗 我甚至无法在插件市场找到你的astrbot_plugin_temp_chat_fix 希望您在提bug时按照bug模板来
@mjy1113451 重启了吗 问过ai了吗 我甚至无法在插件市场找到你的astrbot_plugin_temp_chat_fix 希望您在提bug时按照bug模板来
这个插件是别人帮我修功能时安的,不是插件市场的。应该是个zip,我在github都没找到这个仓库
如果重启了 AstrBot ,没有复现此问题,说明就是插件问题,且说明了:
该插件在
main.py:52猴补丁了 aiocqhttp 的call_action,删除时未在terminate()里还原,于是运行中的 bot 对象上仍留着旧包装,之后每次发送都会穿过那个已删除的文件路径。AstrBot 侧卸载时有调用terminate()(astrbot/core/star/star_manager.py:1703 @ 42972e932),清理责任在该插件。(静态定位,未实机复现)
下次如果您发现了此类问题,特别是日志类的,我建议您优先询问 AI ,并让 AI 给日志做脱敏处理(移除个人隐私信息,您提供的日志已经包含 QQ 号)。如果是本体问题,再创建 issue 。
以及最重要的,也是贡献者提出来的,使用模板来创建 issue 。因为模板会提供错误日志的板块方便您粘贴日志,并以代码块的形式呈现。如果您执意使用空模板,请学习 Markdown 语法,学会将日志套在代码块中。
就像这样,您应该把日志以这种方式呈现
Github 已经提供了文档,详见:基本写作和格式语法
移动端和网页端也提供了工具方便您快速使用 Markdown 。
综上所述,如果问题已解决,请关闭此 issue ,以便减轻本仓库堆积 issue 的负担。谢谢!
4. 那个插件主要都删了
可以尝试去本地目录确认插件文件夹 astrbot_plugin_temp_chat_fix 是否已删除,如果还在的话手动删除
File "/AstrBot/data/plugins/astrbot_plugin_temp_chat_fix/main.py"
删除后完整重启后再确认