{"record":{"id":"6d03649389ae3ddb","repo":"BerriAI/litellm","slug":"timeout-error-occurred-6d0364","errorCode":null,"errorMessage":"Timeout error occurred","messagePattern":"Timeout error occurred","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/secret_managers/aws_secret_manager_v2.py","lineNumber":149,"sourceCode":"            )\n\n        endpoint_url, headers, body = self._prepare_request(\n            action=\"GetSecretValue\",\n            secret_name=secret_name,\n            optional_params=optional_params,\n        )\n\n        async_client: Final = get_async_httpx_client(\n            llm_provider=httpxSpecialProvider.SecretManager,\n            params={\"timeout\": timeout},\n        )\n\n        try:\n            response: Final = await async_client.post(url=endpoint_url, headers=headers, data=body.decode(\"utf-8\"))\n            response.raise_for_status()\n            return response.json()[\"SecretString\"]\n        except httpx.TimeoutException:\n            raise ValueError(\"Timeout error occurred\")\n        except Exception as e:\n            verbose_logger.exception(\n                \"Error reading secret='%s' from AWS Secrets Manager: %s\",\n                secret_name,\n                str(e),\n            )\n        return None\n\n    def sync_read_secret(\n        self,\n        secret_name: str,\n        optional_params: dict | None = None,\n        timeout: float | httpx.Timeout | None = None,\n        primary_secret_name: str | None = None,\n    ) -> str | None:\n        \"\"\"\n        Sync function to read a secret from AWS Secrets Manager\n","sourceCodeStart":131,"sourceCodeEnd":167,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/secret_managers/aws_secret_manager_v2.py#L131-L167","documentation":"Wrapper that converts an httpx.TimeoutException from the async GetSecretValue POST into a plain ValueError. It means the AWS Secrets Manager HTTP request exceeded the configured timeout param before a response arrived; supply a larger timeout or retry.","triggerScenarios":"Thrown at litellm/secret_managers/aws_secret_manager_v2.py:149 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check network connectivity to AWS and increase the client timeout/retry configuration.","Verify the AWS endpoint is reachable (VPC endpoints/proxies) and credentials are valid, then retry."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}