[2026-03-21 07:11:24.169] [Plug] [ERRO] [v4.20.1] [llm.message_generator:535]: 心念 | ❌ 发送消息时发生错误: 不合法的 session 字符串: not enough values to unpack (expected 3, got 1)
[2026-03-21 07:11:24.170] [Plug] [ERRO] [v4.20.1] [llm.message_generator:538]: 心念 | 发送错误详情: Traceback (most recent call last):
File "/opt/AstrBot/astrbot/core/star/context.py", line 450, in send_message
session = MessageSesion.from_str(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/AstrBot/astrbot/core/platform/message_session.py", line 26, in from_str
platform_id, message_type, session_id = session_str.split(":", 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/AstrBot/data/plugins/astrbot_proactive_reply/llm/message_generator.py", line 532, in _send_message_with_split
await self._send_single_message(session, message, proactive_prompt_used)
File "/opt/AstrBot/data/plugins/astrbot_proactive_reply/llm/message_generator.py", line 644, in _send_single_message
success = await self.context.send_message(session, message_chain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/AstrBot/astrbot/core/star/context.py", line 452, in send_message
raise ValueError("不合法的 session 字符串: " + str(e))
ValueError: 不合法的 session 字符串: not enough values to unpack (expected 3, got 1)
以上是报错日志,暂时先不知道如何复现是突然抽风久这样了。抱错后有如下消息

之后就一直不理人了,发送任何信息都没反应,包括reset。关闭插件并重新安装插件后恢复正常
希望对改进插件有帮助
[2026-03-21 07:11:24.169] [Plug] [ERRO] [v4.20.1] [llm.message_generator:535]: 心念 | ❌ 发送消息时发生错误: 不合法的 session 字符串: not enough values to unpack (expected 3, got 1)
[2026-03-21 07:11:24.170] [Plug] [ERRO] [v4.20.1] [llm.message_generator:538]: 心念 | 发送错误详情: Traceback (most recent call last):
File "/opt/AstrBot/astrbot/core/star/context.py", line 450, in send_message
session = MessageSesion.from_str(session)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/AstrBot/astrbot/core/platform/message_session.py", line 26, in from_str
platform_id, message_type, session_id = session_str.split(":", 2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/AstrBot/data/plugins/astrbot_proactive_reply/llm/message_generator.py", line 532, in _send_message_with_split
await self._send_single_message(session, message, proactive_prompt_used)
File "/opt/AstrBot/data/plugins/astrbot_proactive_reply/llm/message_generator.py", line 644, in _send_single_message
success = await self.context.send_message(session, message_chain)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/AstrBot/astrbot/core/star/context.py", line 452, in send_message
raise ValueError("不合法的 session 字符串: " + str(e))
ValueError: 不合法的 session 字符串: not enough values to unpack (expected 3, got 1)
以上是报错日志,暂时先不知道如何复现是突然抽风久这样了。抱错后有如下消息
之后就一直不理人了,发送任何信息都没反应,包括reset。关闭插件并重新安装插件后恢复正常
希望对改进插件有帮助