From 65bed54f2824dcc7c8a367c9c41e9652c46e9b8b Mon Sep 17 00:00:00 2001 From: CreateRandom Date: Thu, 16 Apr 2026 09:46:03 +0200 Subject: [PATCH] fix(proxy): skip post_call_failure_hook for 499 client disconnect --- litellm/proxy/common_request_processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/common_request_processing.py b/litellm/proxy/common_request_processing.py index 7f372df7969..2ac792b04f7 100644 --- a/litellm/proxy/common_request_processing.py +++ b/litellm/proxy/common_request_processing.py @@ -1622,6 +1622,7 @@ class ProxyBaseLLMRequestProcessing: """Raises ProxyException (OpenAI API compatible) if an exception is raised""" if isinstance(e, HTTPException) and e.status_code == 499: verbose_proxy_logger.info("Client disconnected the request (499)") + raise e else: verbose_proxy_logger.exception( f"litellm.proxy.proxy_server._handle_llm_api_exception(): Exception occured - {str(e)}"