Skip to content

The adk api_server --a2a command failed to retrieve a valid agent_card. #4201

@WDEP-good

Description

@WDEP-good

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Describe the bug
A clear and concise description of what the bug is.
The adk api_server --a2a command failed to retrieve a valid agent_card.

To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:
2. run adk api_server --a2a --port 8001 .\hello_world_agent\samples\
3. visit http://localhost:8001/a2a/hello_world_agent/agent-card.json show {"detail":"Not Found"}
Expected behavior
If I can successfully obtain the AgentCard, it might be that my path retrieval was incorrect. If that's the case, I hope to have it explained in the document regarding the path of AgentCard when the adk api_server starts the a2a.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Desktop (please complete the following information):

  • OS: Windows
  • Python version(python -V):3.12.6
  • ADK version(pip show google-adk):1.22.1

Model Information:

  • Are you using LiteLLM: Yes
  • Which model is being used(e.g. gemini-2.5-pro) deepseek-chat

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

a2a[Component] This issue is related a2a support inside ADK.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions