Skip to content

[Bug]: n8n error #1777

@tianlinzx

Description

@tianlinzx

Runtime environment

4.5.0

Exception

[2025-11-13 16:16:23 +0800] [10] [INFO] 10.1.9.27:52101 GET /api/v1/pipelines/_/metadata 1.1 200 23413 4169
[2025-11-13 16:16:23 +0800] [10] [INFO] 10.1.9.27:51278 GET /api/v1/pipelines/94bda9a8-5eee-4c6b-a08d-dbe8ce993006 1.1 200 2063 5555
[2025-11-13 16:16:27 +0800] [10] [INFO] 10.1.9.27:51278 GET /api/v1/pipelines/94bda9a8-5eee-4c6b-a08d-dbe8ce993006/chat/messages/person 1.1 200 1527 3628
[2025-11-13 16:16:27 +0800] [10] [INFO] 10.1.9.27:51278 GET /api/v1/pipelines/94bda9a8-5eee-4c6b-a08d-dbe8ce993006/chat/messages/person 1.1 200 1527 1431
[11-13 16:16:31.271] process.py (39) - [INFO] : Processing request from person_webchatperson (16): testsddd
[11-13 16:16:31.616] chat.py (114) - [ERROR] : 对话(16)请求失败: ValueError "Message" object has no field "resp_message_id"
Traceback (most recent call last):
File "/app/pkg/pipeline/process/handlers/chat.py", line 82, in handle
result.resp_message_id = str(resp_message_id)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 1032, in setattr
elif (setattr_handler := self._setattr_handler(name, value)) is not None:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 1079, in _setattr_handler
raise ValueError(f'"{cls.name}" object has no field "{name}"')
ValueError: "Message" object has no field "resp_message_id"
[11-13 16:16:31.617] pipelinemgr.py (236) - [ERROR] : Error processing query 16 stage=MessageProcessor : list index out of range
[11-13 16:16:31.618] pipelinemgr.py (237) - [ERROR] : Traceback: Traceback (most recent call last):
File "/app/pkg/pipeline/pipelinemgr.py", line 233, in process_query
await self._execute_from_stage(0, query)
File "/app/pkg/pipeline/pipelinemgr.py", line 193, in _execute_from_stage
await self._check_output(query, sub_result)
File "/app/pkg/pipeline/pipelinemgr.py", line 120, in _check_output
bot_message=query.resp_messages[-1],
~~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range

Reproduction steps

response body is extremely simple.

{
  "resp_message_id":"001",
  "response": "hello calvin"
}

Enabled plugins

none

Metadata

Metadata

Assignees

Labels

bug?Bug或Bug修复相关 / maybe a bugm: Session会话和消息模块 / Sessions managementpd: Need reproducingpending: 需要测试以复现的issue,若您遇到相同问题,请提供更多的有价值的信息 / Please add more info as you can for us to reproduce

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions