From fd7024f198122f69dc2360988f184dcd20335c72 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Mon, 24 Aug 2026 07:35:57 -0400 Subject: [PATCH] fix: log tool server connectivity failures without a traceback (#27757) --- backend/open_webui/utils/tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 8c0046f0b1..19de805ea6 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -1491,6 +1491,10 @@ async def get_tool_server_data(url: str, headers: dict | None) -> dict[str, Any] # Fall back to YAML for non-.yml URLs that aren't valid JSON res = yaml.safe_load(text_content) + except (aiohttp.ClientConnectionError, TimeoutError) as err: + error = str(err) or type(err).__name__ + log.error(f'Could not fetch tool server spec from {url}: {error}') + raise Exception(error) except Exception as err: log.exception(f'Could not fetch tool server spec from {url}') if isinstance(err, dict) and 'detail' in err: