mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
/api/version/updates blocks the server in restricted network environment
#618
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 @rudeigerc on GitHub (Apr 10, 2024).
Originally assigned to: @tjbck on GitHub.
Bug Report
Description
Bug Summary:
Visit
Settings > Aboutmay get the whole server stucked in restricted network environment.Steps to Reproduce:
open-webuiin a restricted/offline network environment (i.e., cannot visit GitHub API).Settings > About./api/version/updateswill be visited and the whole server stuck until timeout ofrequests.Alternatively, you can also visit
/api/version/updatesdirectly.Expected Behavior:
Alternatively, use libraries supporting aysnchronous requests such as
httpxinstead when sending requests.Actual Behavior:
The whole server stucks until
GET https://api.github.com/repos/open-webui/open-webui/releases/latesttimeout since the request is synchronous, and the limitaiton of Python GIL.Environment
Reproduction Details
Confirmation:
Logs and Screenshots
Browser Console Logs:
N/A
Docker Container Logs:
N/A
Screenshots (if applicable):
N/A
Installation Method
Kubernetes
Additional Information
N/A
Note
N/A
@tjbck commented on GitHub (Apr 10, 2024):
Should be fixed in dev, let me know if the issue persists!
@rudeigerc commented on GitHub (Apr 10, 2024):
@tjbck Thanks for your rapid update! I'll have a look at it.