Skip to content

Commit 2a39b63

Browse files
committed
fix: Remove newly added exceptionally handling in JdkA2AHttpClient
1 parent 41511f4 commit 2a39b63

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

http-client/src/main/java/io/a2a/client/http/JdkA2AHttpClient.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,6 @@ public void onComplete() {
185185
return httpClient.sendAsync(request, bodyHandler)
186186
.thenAccept(response -> {
187187
// Status checking is now handled in the body handler
188-
})
189-
.exceptionally(throwable -> {
190-
// handle any other async errors (network issues, etc.)
191-
subscriber.onError(new IOException("Request failed: " + throwable.getMessage(), throwable));
192-
return null;
193188
});
194189
}
195190
}

0 commit comments

Comments
 (0)