BerriAI/litellm · error · BedrockError
Error processing response: {e}
Error message
Error processing response: {e} What it means
Error "Error processing response: {e}" thrown in BerriAI/litellm.
Source
Thrown at litellm/llms/bedrock/chat/invoke_agent/transformation.py:468
verbose_logger.debug("Parsed %s events from stream", len(events))
# Extract response content from chunk events
content: Final = self._extract_response_content(events)
# Extract usage information from trace events
usage_info: Final = self._extract_usage_info(events)
# Build and return the model response
return self._build_model_response(
content=content,
model=model,
usage_info=usage_info,
model_response=model_response,
)
except Exception as e:
verbose_logger.error("Error processing Bedrock Invoke Agent response: %s", e)
raise BedrockError(
message=f"Error processing response: {e}",
status_code=raw_response.status_code,
)
def validate_environment(
self,
headers: dict,
model: str,
messages: list[AllMessageValues],
optional_params: dict,
litellm_params: dict,
api_key: str | None = None,
api_base: str | None = None,
) -> dict:
return headers
def get_error_class(self, error_message: str, status_code: int, headers: dict | httpx.Headers) -> BaseLLMException:
return BedrockError(status_code=status_code, message=error_message)View on GitHub (pinned to 6c2dcb801b)
Solutions
- Check the agent response stream; see the wrapped exception.
When it happens
Trigger: Thrown at litellm/llms/bedrock/chat/invoke_agent/transformation.py:468 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of BerriAI/litellm@6c2dcb801b (2026-08-15).
Data as JSON: /api/errors/ec12cd8beebff42c.
Report an issue: GitHub.