mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #19533] issue: Frontend infinite loading caused by malformed "500 Error" node in chat history #73520
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 @GSAlex on GitHub (Nov 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/19533
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.40
Ollama Version (if applicable)
n/a
Operating System
debian
Browser (if applicable)
Firefox 145
Confirmation
README.md.Expected Behavior
When clicking on the chat in the sidebar, the interface should load and display the existing conversation history properly.
Actual Behavior
The frontend gets stuck on the loading screen.
Inspecting the data reveals that the currentId points to a node that has only a error property
Steps to Reproduce
This issue occurs sporadically. It happens like that when a chat session encounters an intermittent backend 500 error during response generation. I cannot reliably reproduce the specific network/server condition that triggers the 500 error on demand.
Logs & Screenshots
Here is the minimal reproduction JSON structure extracted from the network log and database. The node 24a0acbd-9f7f-422a-b484-95ded47d368a is the cause of the crash.
{
"id": "c0e57f37-0fcc-4a93-b684-9716e11cb1cd",
"chat": {
"history": {
"messages": {
"2ab036cb-c726-47fa-8e55-0f57597b1517": {
"id": "2ab036cb-c726-47fa-8e55-0f57597b1517",
"parentId": "a1b3f9ec-35ca-4e00-a8bc-7126a80782ce",
"childrenIds": [],
"role": "assistant",
"content": "[VALID PREVIOUS CONTENT REDACTED]",
"done": true
},
"24a0acbd-9f7f-422a-b484-95ded47d368a": {
"error": {
"content": "500: Open WebUI: Server Connection Error"
}
// MISSING: "role", "id", "parentId", "timestamp"
}
},
"currentId": "24a0acbd-9f7f-422a-b484-95ded47d368a"
}
}
}
Additional Information
Workaround: Manually editing the JSON to delete the malformed node (24a0acbd...) and reverting currentId to the previous valid node (2ab036cb...) restores access to the chat.
Title Generation: The auto-title generation feature also seems to fail on this chat, presumably because the parser crashes when encountering the structureless node.
@tjbck commented on GitHub (Nov 27, 2025):
#19225