mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-11 18:43:44 -05:00
[GH-ISSUE #1376] feat: backend timeout error handling #51132
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 @shaul75 on GitHub (Apr 1, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1376
Description
Whenever the API request to the backend takes a while to return any data (usually because the model wasn't loaded yet), and there's a "504 Gateway Time-out" error, the client does not handle it and the user would see the loading skeleton indefinitely, with no indication of a problem unless you open the dev tools.
I suggest adding error handling that'll show a failure message and a retry button to make it clear the request to the backend failed.
@tjbck commented on GitHub (Apr 1, 2024):
Steps to reproduce would be extremely helpful here!
@shaul75 commented on GitHub (Apr 1, 2024):
I don't know of an easy way to force the backend to return 504 there, for me it happens pretty consistently when loading large LLMs (>20GB) during the first chat message.
I can look into it and create a PR myself when I have some free time (probably later today).
I've seen other response codes are already handled in the UI so it should be a small fix
@tjbck commented on GitHub (Apr 19, 2024):
Closing in favour of #1611