The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): recognize P2034 write-conflict deadlock text in is_deadlock_error
RayJueWang16e6ad6fb735
diff --git a/litellm/proxy/db/exception_handler.py b/litellm/proxy/db/exception_handler.pyindex 91c7e576dff..f7a39aaa50f 100644--- a/litellm/proxy/db/exception_handler.py+++ b/litellm/proxy/db/exception_handler.py@@ -176,7 +176,11 @@ class PrismaDBExceptionHandler:if getattr(e, "code", None) == "P2034":return Trueerror_message = str(e).lower()- return "deadlock detected" in error_message or "40p01" in error_message+ return (+ "deadlock detected" in error_message+ or "40p01" in error_message+ or "write conflict or a deadlock" in error_message+ )@staticmethoddef is_prisma_engine_internal_error(e: Exception) -> bool: