mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #15760] issue: OOB large chat page number causes Exception and 500 #56327
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 @jakehlee on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15760
Originally assigned to: @tjbck on GitHub.
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.16
Ollama Version (if applicable)
No response
Operating System
RHEL 9.5
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
http://localhost:3000/api/v1/chats/?page=9999999999999999999 should return an empty array, as with other paginations that does not exist, or an error message as with http://localhost:3000/api/v1/chats/?page=abc :
{"detail":[{"type":"int_parsing","loc":["query","page"],"msg":"Input should be a valid integer, unable to parse string as an integer","input":"abc"}]}Actual Behavior
http://localhost:3000/api/v1/chats/?page=9999999999999999999 returns 500 Internal Server Error.
The backend logs indicate a
OverflowError: Python int too large to convert to SQLite INTEGERSteps to Reproduce
Logs & Screenshots
Docker:
Additional Information
No response
@tjbck commented on GitHub (Jul 16, 2025):
Addressed with
20b6892d9b@jakehlee commented on GitHub (Jul 28, 2025):
Apologies, I wanted to report another instance of this error:
http://localhost:3000/api/v1/chats/archived?page=99999999999999999999