ragflow/api/apps
zhanglei daf6c82066
fix: list index out of range (#8518)
### What problem does this PR solve?

stack:

```
2025-06-26 17:22:24,739 ERROR    1609 list index out of range
Traceback (most recent call last):
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
  File "/ragflow/api/utils/api_utils.py", line 298, in decorated_function
    return func(*args, **kwargs)
  File "/ragflow/api/apps/sdk/session.py", line 472, in list_session
    print(conv["reference"][message_num])
IndexError: list index out of range

```


![图片](https://github.com/user-attachments/assets/93fe90a8-0434-4842-ba9f-bb5a995b498a)


### Type of change

- [ ] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
2025-06-27 09:38:33 +08:00
..
auth Fix: use jwks_uri from OIDC metadata for JWKS client (#8136) 2025-06-10 10:16:58 +08:00
sdk fix: list index out of range (#8518) 2025-06-27 09:38:33 +08:00
__init__.py Fix: Authentication Bypass via predictable JWT secret and empty token validation (#7998) 2025-06-05 12:10:24 +08:00
api_app.py fix: resolve “has no attribute 'max_length'” error in keyword_extraction (#7903) 2025-05-28 10:58:06 +08:00
canvas_app.py Fix: code debug may corrupt by history answer (#8385) 2025-06-20 14:23:02 +08:00
chunk_app.py Fix: Add input validation to chunk creation endpoint (#8516) 2025-06-26 17:46:00 +08:00
conversation_app.py Fix: /v1/conversation/completion KeyError: 'conversation_id' (#8037) 2025-06-04 10:18:14 +08:00
dialog_app.py Fix: no kb selected for an assistant. (#8021) 2025-06-03 17:42:16 +08:00
document_app.py Fix: chunk number error after re-parsing (#8513) 2025-06-26 17:46:53 +08:00
file2document_app.py Fix: link to KB from filemanager. (#6530) 2025-03-26 09:41:14 +08:00
file_app.py Refactor:Improve insert file logic (#8445) 2025-06-24 13:17:22 +08:00
kb_app.py Fix typo in dataset name length error message (#8351) 2025-06-19 09:54:30 +08:00
langfuse_app.py Feat: add project_id and project_name to Langfuse API (#6481) 2025-03-25 10:36:34 +08:00
llm_app.py Fix: Hunyuan model adding error. (#6531) 2025-03-26 10:33:33 +08:00
mcp_server_app.py Feat: add MCP dashboard functionalities list_tools and test_tool (#8505) 2025-06-26 13:52:01 +08:00
plugin_app.py Feat: Support tool calling in Generate component (#7572) 2025-05-16 16:32:19 +08:00
search_app.py Feat: add MCP dashboard operations (#8460) 2025-06-25 09:26:04 +08:00
system_app.py Feat: Add user registration toggle feature (#6327) 2025-03-21 09:38:15 +08:00
tenant_app.py Update team invite message (#4085) 2024-12-18 14:20:09 +08:00
user_app.py Fix: Authentication Bypass via predictable JWT secret and empty token validation (#7998) 2025-06-05 12:10:24 +08:00