diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index 3f7d2aa094..cb1ddb8fac 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -1439,6 +1439,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: