Skip to content

fix(adk): set correct URL for remote agent card#848

Merged
EItanya merged 1 commit intokagent-dev:mainfrom
onematchfox:fix-adk-remote-agent-card-url
Sep 3, 2025
Merged

fix(adk): set correct URL for remote agent card#848
EItanya merged 1 commit intokagent-dev:mainfrom
onematchfox:fix-adk-remote-agent-card-url

Conversation

@onematchfox
Copy link
Copy Markdown
Contributor

@onematchfox onematchfox commented Sep 3, 2025

Addresses issue whereby agent->agent calls are currently failing with errors like this in the UI:

{"id":"call_xx": "name": "transfor_to_agent", "response":{"result": null}}

Agent pods show the following errors:

ERROR:google_adk.google.adk.agents.remote_a2a_agent:Failed to resolve remote A2A agent kagent__NS__my_agent: Failed to resolve AgentCard from URL http://my-agent.kagent:8080/: HTTP Error 405: Failed to fetch agent card from http://my-agent.kagent:8080/: Client error '405 Method Not Allowed' for url 'http://my-agent.kagent:8080/'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405

I guess this was my bad, and it's related to the upgrade in #816.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 3, 2025 10:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This fix resolves agent-to-agent communication failures by correcting the URL format used for remote agent cards. The issue was causing 405 Method Not Allowed errors when agents attempted to communicate with each other.

  • Import the AGENT_CARD_WELL_KNOWN_PATH constant from the remote agent module
  • Update the agent card URL construction to append the well-known path to the base URL

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@EItanya EItanya merged commit 20baa60 into kagent-dev:main Sep 3, 2025
16 of 17 checks passed
@onematchfox onematchfox deleted the fix-adk-remote-agent-card-url branch September 5, 2025 06:33
Raghavendiran-2002 pushed a commit to Raghavendiran-2002/kagent that referenced this pull request Apr 30, 2026
Addresses issue whereby agent->agent calls are currently failing with
errors like this in the UI:


``` json
{"id":"call_xx": "name": "transfor_to_agent", "response":{"result": null}}
```

Agent pods show the following errors:
```
ERROR:google_adk.google.adk.agents.remote_a2a_agent:Failed to resolve remote A2A agent kagent__NS__my_agent: Failed to resolve AgentCard from URL http://my-agent.kagent:8080/: HTTP Error 405: Failed to fetch agent card from http://my-agent.kagent:8080/: Client error '405 Method Not Allowed' for url 'http://my-agent.kagent:8080/'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
```

I guess this was my bad, and it's related to the upgrade in kagent-dev#816.

Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants