{"record":{"id":"6bb94d8f1ecfbe67","repo":"BerriAI/litellm","slug":"a2a-error-error-get-message-unknown-error","errorCode":null,"errorMessage":"A2A error: {error.get('message', 'Unknown error')}","messagePattern":"A2A error: (.+?)","errorType":"http","errorClass":"A2AError","httpStatus":null,"severity":"error","filePath":"litellm/llms/a2a/chat/transformation.py","lineNumber":289,"sourceCode":"            api_key: API key\n            json_mode: JSON mode flag\n\n        Returns:\n            Populated ModelResponse object\n        \"\"\"\n        try:\n            response_json: Final = raw_response.json()\n        except Exception as e:\n            raise A2AError(\n                status_code=raw_response.status_code,\n                message=f\"Failed to parse A2A response: {e}\",\n                headers=dict(raw_response.headers),\n            )\n\n        # Check for JSON-RPC error\n        if \"error\" in response_json:\n            error: Final = response_json[\"error\"]\n            raise A2AError(\n                status_code=raw_response.status_code,\n                message=f\"A2A error: {error.get('message', 'Unknown error')}\",\n                headers=dict(raw_response.headers),\n            )\n\n        # Extract text from A2A response\n        text: Final = extract_text_from_a2a_response(response_json)\n\n        # Populate model response\n        model_response.choices = [\n            Choices(\n                finish_reason=\"stop\",\n                index=0,\n                message=Message(\n                    content=text,\n                    role=\"assistant\",\n                ),\n            )","sourceCodeStart":271,"sourceCodeEnd":307,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/llms/a2a/chat/transformation.py#L271-L307","documentation":"Error \"A2A error: {error.get('message', 'Unknown error')}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/llms/a2a/chat/transformation.py:289 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the A2A error message returned by the agent."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d","analyzedAt":"2026-08-15T07:12:03.035Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}