mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[GH-ISSUE #9029] Feature Request: Add Timeout Support for Fetch Requests #69966
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 @HuaSheng2000 on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9029
Feature Request
Describe
Currently, the fetch implementation in the codebase lacks a built-in timeout mechanism. This can result in indefinite waiting periods for network requests that may never resolve,
For instance, in my case, the application sends a request to a server to fetch models. If the server is powered off or unresponsive, the fetch request keeps waiting indefinitely. This causes issues such as a blank screen after login because the request does not fail gracefully. Upon checking the logs, it was evident that the problem stems from the server timeout.
Request
I propose adding support for a configurable timeout feature to the fetch requests.
By adding a timeout mechanism, the application can provide better feedback to users (e.g., "Server is not responding, please try again later")
Additional context
After logging in, a request for models will be sent, and the screen will remain white during the request.
here is the request.
@tjbck commented on GitHub (Jan 28, 2025):
We do have one: https://docs.openwebui.com/getting-started/advanced-topics/env-configuration#aiohttp_client_timeout_openai_model_list