mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #20795] issue: Batch file processing API fails due to missing required field in error response #73894
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amit-p-dev on GitHub (Jan 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20795
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
latest
Ollama Version (if applicable)
No response
Operating System
Windows 10
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
API should return a structured response with:
results: processed files
errors: failed files with status="failed"
Actual Behavior
API crashes with a Pydantic validation error
No valid response is returned to the client
Steps to Reproduce
Call POST /process/files/batch
Ensure vector DB insertion fails (e.g., invalid embedding dimension, connection issue)
API crashes instead of returning a valid error response
Proposed Fix
Always include the required status field when creating BatchProcessFilesResult:
BatchProcessFilesResult(
file_id=result.file_id,
status="failed",
error=str(e)
)
Logs & Screenshots
Root Cause
BatchProcessFilesResult requires the status field:
class BatchProcessFilesResult(BaseModel):
file_id: str
status: str
error: Optional[str] = None
But in the vector DB failure handler, it is created without status:
BatchProcessFilesResult(
file_id=result.file_id,
error=str(e)
)
Additional Information
Root Cause
BatchProcessFilesResult requires the status field:
class BatchProcessFilesResult(BaseModel):
file_id: str
status: str
error: Optional[str] = None
But in the vector DB failure handler, it is created without status:
BatchProcessFilesResult(
file_id=result.file_id,
error=str(e)
)
@owui-terminator[bot] commented on GitHub (Jan 19, 2026):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#20361 Issue: Large-scale model setting-related functionality fails.
by shentong0722 • Jan 04, 2026 •
bug#20544 issue: Document uploading - Docling API
by n4gY1 • Jan 10, 2026 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@silentoplayz commented on GitHub (Jan 22, 2026):
Should be solved on the dev branch with
68b2872ed6. Testing is wanted!