mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/22618
Author: @gambletan
Created: 3/12/2026
Status: ❌ Closed
Base:
main← Head:fix/openapi-fetch-timeout📝 Commits (1)
4a2501cfix(tool-server): add AbortController timeout to openapi.json fetch📊 Changes
1 file changed (+17 additions, -5 deletions)
View changed files
📝
src/lib/apis/index.ts(+17 -5)📄 Description
Summary
Fixes #22543 — infinite UI hang when an external OpenAPI tool server is unreachable.
fetch()call ingetToolServerData(src/lib/apis/index.ts) had no timeout or abort signal, causing the browser to keep the requestPendingforever and blocking page load when a configured tool server is unreachable.AbortControllerwith a 10-second default timeout (timeoutparameter, configurable). Thesignalis passed tofetch().AbortError, a descriptive"Connection timed out after 10s"error is thrown instead of hanging.getToolServersDatapropagates this as{ error, url }, whichsetToolServers(insrc/routes/(app)/+layout.svelte) already converts into a non-blockingtoast.error()warning — so page load continues and the user sees a clear message.Behaviour change
Test plan
http://localhost:2022)timeoutparameter🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.