mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
fix(aws_secret_manager_V2.py): Error reading secret from AWS Secrets Manager:
This commit is contained in:
parent
23104d9a14
commit
520de8333b
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue