From 46fdc6fa1f5e6495687d641a351b506261977bec Mon Sep 17 00:00:00 2001 From: CokeLee777 Date: Wed, 18 Feb 2026 00:19:42 +0900 Subject: [PATCH] fix: use SERVER_URL constant in A2ACardResolver constructor in HelloWorldClient Fixes #664 --- .../main/java/io/a2a/examples/helloworld/HelloWorldClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helloworld/client/src/main/java/io/a2a/examples/helloworld/HelloWorldClient.java b/examples/helloworld/client/src/main/java/io/a2a/examples/helloworld/HelloWorldClient.java index 332706ccc..6634898c7 100644 --- a/examples/helloworld/client/src/main/java/io/a2a/examples/helloworld/HelloWorldClient.java +++ b/examples/helloworld/client/src/main/java/io/a2a/examples/helloworld/HelloWorldClient.java @@ -53,7 +53,7 @@ public class HelloWorldClient { public static void main(String[] args) { OpenTelemetrySdk openTelemetrySdk = null; try { - AgentCard publicAgentCard = new A2ACardResolver("http://localhost:9999").getAgentCard(); + AgentCard publicAgentCard = new A2ACardResolver(SERVER_URL).getAgentCard(); System.out.println("Successfully fetched public agent card:"); System.out.println(JsonUtil.toJson(publicAgentCard)); System.out.println("Using public agent card for client initialization (default).");