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(aws_secret_manager_V2.py): Error reading secret from AWS Secrets Manager: (#7541)
Krish Dholakiacac06a32b854
diff --git a/litellm/secret_managers/aws_secret_manager_v2.py b/litellm/secret_managers/aws_secret_manager_v2.pyindex 43aa0d52f57..14a8624ca87 100644--- a/litellm/secret_managers/aws_secret_manager_v2.py+++ b/litellm/secret_managers/aws_secret_manager_v2.py@@ -127,10 +127,14 @@ class AWSSecretsManagerV2(BaseAWSLLM):response = sync_client.post(url=endpoint_url, headers=headers, data=body.decode("utf-8"))- response.raise_for_status()return response.json()["SecretString"]except httpx.TimeoutException:raise ValueError("Timeout error occurred")+ except httpx.HTTPStatusError as e:+ verbose_logger.exception(+ "Error reading secret from AWS Secrets Manager: %s",+ str(e.response.text),+ )except Exception as e:verbose_logger.exception("Error reading secret from AWS Secrets Manager: %s", str(e)