Skip to content

[Question]: Chat - list index out of range error #11782

@meetcharan-practice

Description

@meetcharan-practice

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Describe your problem

Hello,

I started from scratch and rebuilt the RAGFlow image using the latest source.
After deploying it in Docker, I was able to register a user, configure the LLMs, and create a Chat.
However, when I try to interact with the Chat Assistant, I encounter the following error. Could you please advise?

Image

Traceback (most recent call last):
File "/ragflow/.venv/lib/python3.10/site-packages/quart/app.py", line 1500, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/ragflow/.venv/lib/python3.10/site-packages/quart/app.py", line 1591, in dispatch_request
self.raise_routing_exception(request_)
File "/ragflow/.venv/lib/python3.10/site-packages/quart/app.py", line 1578, in raise_routing_exception
raise request.routing_exception
File "/ragflow/.venv/lib/python3.10/site-packages/quart/ctx.py", line 73, in match_request
) = self.url_adapter.match( # type: ignore
File "/ragflow/.venv/lib/python3.10/site-packages/werkzeug/routing/map.py", line 629, in match
raise NotFound() from None
werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
[2025-12-05 11:54:43 +0100] [24] [INFO] 127.0.0.1:54210 GET /v1/document/image/ 1.1 200 65 5974
2025-12-05 11:54:44,679 ERROR 24 LLMBundle.chat can't update token usage for 125c4164d1af11f0ad9046704e79750f/CHAT llm_name: gpt-4o@Azure-OpenAI, used_tokens: 1061
2025-12-05 11:54:45,488 ERROR 24 LLMBundle.chat can't update token usage for 125c4164d1af11f0ad9046704e79750f/CHAT llm_name: gpt-4o@Azure-OpenAI, used_tokens: 121
2025-12-05 11:54:46,007 INFO 24 POST http://es01:9200/ragflow_125c4164d1af11f0ad9046704e79750f/_search [status:200 duration:0.077s]
2025-12-05 11:54:46,123 INFO 24 POST http://es01:9200/ragflow_125c4164d1af11f0ad9046704e79750f/_search [status:200 duration:0.006s]

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions