Skip to content

[Bug]: 调用机器人,偶现没有消息回复,原因排查! #1844

@Alex-wwei

Description

@Alex-wwei

Runtime environment

docker启动

Exception

[12-05 14:43:41.640] pipelinemgr.py (253) - [ERROR] : Error processing query 99 stage=MessageProcessor : list index out of range
[12-05 14:43:41.641] pipelinemgr.py (254) - [ERROR] : Traceback: Traceback (most recent call last):
File "/app/src/langbot/pkg/pipeline/pipelinemgr.py", line 250, in process_query
await self._execute_from_stage(0, query)
File "/app/src/langbot/pkg/pipeline/pipelinemgr.py", line 210, in _execute_from_stage
await self._check_output(query, sub_result)
File "/app/src/langbot/pkg/pipeline/pipelinemgr.py", line 137, in _check_output
bot_message=query.resp_messages[-1],
~~~~~~~~~~~~~~~~~~~^^^^
IndexError: list index out of range

Reproduction steps

创建一个钉钉adapter机器人,关闭开启机器人数次,即使前端显示关闭成功,但后台并没有真正关闭掉钉钉的进程。这样钉钉发送的消息会偶尔推送到之前未关闭的ws连接处理,导致无消息结果返回。

Enabled plugins

No response

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