BerriAI/litellm · error · RuntimeError
A2A send_message_streaming failed: no response received afte
Error message
A2A send_message_streaming failed: no response received after retry attempts.
What it means
Error "A2A send_message_streaming failed: no response received after retry attempts." thrown in BerriAI/litellm.
Source
Thrown at litellm/a2a_protocol/main.py:375
card_url = get_agent_card_url(agent_card) if agent_card else None
continue
except Exception as e:
if response_started:
raise
try:
map_a2a_exception(e, card_url, api_base, model=agent_name)
except A2ALocalhostURLError as localhost_err:
a2a_client = await handle_a2a_localhost_retry(
error=localhost_err,
agent_card=agent_card,
a2a_client=a2a_client,
is_streaming=True,
)
card_url = get_agent_card_url(agent_card) if agent_card else None
continue
raise
if not stream_succeeded:
raise RuntimeError("A2A send_message_streaming failed: no response received after retry attempts.")
@client
async def asend_message(
a2a_client: Optional["A2AClientType"] = None,
request: Optional["SendMessageRequest"] = None,
api_base: str | None = None,
litellm_params: dict[str, object] | None = None,
agent_id: str | None = None,
agent_extra_headers: dict[str, str] | None = None,
**kwargs: object,
) -> LiteLLMSendMessageResponse:
"""
Async: Send a message to an A2A agent.
Uses the @client decorator for LiteLLM logging and tracking.
If litellm_params contains custom_llm_provider, routes through the completion bridge.
View on GitHub (pinned to 6c2dcb801b)
Solutions
- The agent did not stream a response after retries; check agent availability and streaming support.
When it happens
Trigger: Thrown at litellm/a2a_protocol/main.py:375 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/8475320a69731d5b.
Report an issue: GitHub.