fix(adk): set correct URL for remote agent card#848
Merged
EItanya merged 1 commit intokagent-dev:mainfrom Sep 3, 2025
Merged
Conversation
Signed-off-by: Brian Fox <878612+onematchfox@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
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_PATHconstant 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
approved these changes
Sep 3, 2025
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
I guess this was my bad, and it's related to the upgrade in #816.