BerriAI/litellm · error · BedrockError
Timeout error occurred.
Error message
Timeout error occurred.
What it means
Error "Timeout error occurred." thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/bedrock/chat/converse_handler.py:226
timeout = httpx.Timeout(timeout)
_params["timeout"] = timeout
client = get_async_httpx_client(params=_params, llm_provider=litellm.LlmProviders.BEDROCK)
else:
client = client
try:
response: Final = await client.post(
url=api_base,
headers=headers,
data=data,
logging_obj=logging_obj,
)
response.raise_for_status()
except httpx.HTTPStatusError as err:
error_code: Final = err.response.status_code
raise BedrockError(status_code=error_code, message=err.response.text)
except httpx.TimeoutException:
raise BedrockError(status_code=408, message="Timeout error occurred.")
return litellm.AmazonConverseConfig()._transform_response(
model=model,
response=response,
model_response=model_response,
stream=stream if isinstance(stream, bool) else False,
logging_obj=logging_obj,
api_key="",
data=data,
messages=messages,
optional_params=optional_params,
encoding=encoding,
)
def completion(
self,
model: str,
messages: list,View on GitHub (pinned to 6c2dcb801b)
Solutions
- Increase the timeout or check Bedrock Converse latency/connectivity.
When it happens
Trigger: Thrown at litellm/llms/bedrock/chat/converse_handler.py:226 when the library encounters an invalid state.
Common situations: See trigger scenarios.
Understand the failure class
- Timeouts: ETIMEDOUT, deadlines, and hung requests — what actually expires when a request times out.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/e6aa89d43d4055af.
Report an issue: GitHub.