mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[PR #22583] [CLOSED] fix: add 10 s AbortController timeout to getToolServerData fetch #26767
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/22583
Author: @NIK-TIGER-BILL
Created: 3/11/2026
Status: ❌ Closed
Base:
main← Head:fix/tool-server-fetch-timeout📝 Commits (1)
57874d5fix: add 10s AbortController timeout to getToolServerData fetch📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
src/lib/apis/index.ts(+10 -2)📄 Description
Problem
When an enabled external tool server is unreachable, the frontend's fetch of
openapi.jsonhas no timeout, so the page hangs indefinitely with a spinner on every settings / chat load. No error is ever shown to the user (closes #22543).Root cause
getToolServerData()insrc/lib/apis/index.tscallsfetch(url)without asignal, so the browser connection never times out.Fix
Add an
AbortControllerwith a configurabletimeoutMs(default 10 s):AbortError).timeoutMsparameter defaults to 10 s but callers can override it.Fixes #22543
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.