[GH-ISSUE #9029] Feature Request: Add Timeout Support for Fetch Requests #86102

Closed
opened 2026-05-15 10:34:56 -05:00 by GiteaMirror · 1 comment
Owner

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.

Image

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. ![Image](https://github.com/user-attachments/assets/733c4ad7-3295-439a-a686-bb46149fa18c)
Author
Owner
<!-- gh-comment-id:2619877756 --> @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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#86102