{"record":{"id":"c4376dad5a258f01","repo":"BerriAI/litellm","slug":"failed-to-fetch-agent-card-from-self-base-url-t","errorCode":null,"errorMessage":"Failed to fetch agent card from {self.base_url}. Tried paths: {', '.join(paths)}","messagePattern":"Failed to fetch agent card from (.+?)\\. Tried paths: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"litellm/a2a_protocol/card_resolver.py","lineNumber":166,"sourceCode":"        last_error = None\n        for path in paths:\n            try:\n                verbose_logger.debug(\"Attempting to fetch agent card from %s%s\", self.base_url, path)\n                return await super().get_agent_card(\n                    relative_card_path=path,\n                    http_kwargs=http_kwargs,\n                )\n            except Exception as e:\n                verbose_logger.debug(\"Failed to fetch agent card from %s%s: %s\", self.base_url, path, e)\n                last_error = e\n                continue\n\n        # If we get here, all paths failed - re-raise the last error\n        if last_error is not None:\n            raise last_error\n\n        # This shouldn't happen, but just in case\n        raise Exception(f\"Failed to fetch agent card from {self.base_url}. Tried paths: {', '.join(paths)}\")\n","sourceCodeStart":148,"sourceCodeEnd":167,"githubUrl":"https://github.com/BerriAI/litellm/blob/6c2dcb801bf2b75c18f1bb24140e7cf57465cc4d/litellm/a2a_protocol/card_resolver.py#L148-L167","documentation":"Error \"Failed to fetch agent card from {self.base_url}. Tried paths: {', '.join(paths)}\" thrown in BerriAI/litellm.","triggerScenarios":"Thrown at litellm/a2a_protocol/card_resolver.py:166 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the A2A agent is reachable at base_url and serves its agent card at one of the well-known paths; verify network and URL."],"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"}