{"record":{"id":"136da7f93cf513fa","repo":"BerriAI/litellm","slug":"http-error-occurred-err-response-text","errorCode":null,"errorMessage":"HTTP error occurred: {err.response.text}","messagePattern":"HTTP error occurred: (.+?)","errorType":"http","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/secret_managers/aws_secret_manager_v2.py","lineNumber":308,"sourceCode":"            optional_params=optional_params,\n            request_data=data,\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(\n                url=endpoint_url,\n                headers=headers,\n                data=body.decode(\"utf-8\"),\n            )\n            response.raise_for_status()\n            create_response: Final = response.json()\n        except httpx.HTTPStatusError as err:\n            raise ValueError(f\"HTTP error occurred: {err.response.text}\")\n        except httpx.TimeoutException:\n            raise ValueError(\"Timeout error occurred\")\n\n        if self.replica_regions:\n            try:\n                await self.async_replicate_secret(\n                    secret_name=secret_name,\n                    replica_regions=self.replica_regions,\n                    optional_params=optional_params,\n                    timeout=timeout,\n                )\n                verbose_logger.debug(\n                    \"Replicated secret '%s' to regions: %s\",\n                    secret_name,\n                    self.replica_regions,\n                )\n            except Exception as replication_err:  # noqa: BLE001\n                verbose_logger.warning(","sourceCodeStart":290,"sourceCodeEnd":326,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/secret_managers/aws_secret_manager_v2.py#L290-L326","documentation":"Error-mapping handler for the async secret-creation call: the httpx request completed but raise_for_status() raised HTTPStatusError, and this re-raises the raw HTTP error body so the caller sees exactly what AWS Secrets Manager returned (e.g. InvalidParameterException payload).","triggerScenarios":"Thrown at litellm/secret_managers/aws_secret_manager_v2.py:308 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect err.response.status_code and err.response.text for the AWS-side cause (auth, permissions, throttling).","Fix IAM permissions for secretsmanager/kms actions or correct the request parameters, 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"}