We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8bb5a commit 1e9dd38Copy full SHA for 1e9dd38
client/src/main/java/org/asynchttpclient/netty/NettyResponseFuture.java
@@ -266,7 +266,7 @@ public CompletableFuture<V> toCompletableFuture() {
266
public void run() {
267
ExecutionException e = EX_EX_UPDATER.get(NettyResponseFuture.this);
268
if (e != null)
269
- completable.completeExceptionally(e);
+ completable.completeExceptionally(e.getCause());
270
else
271
completable.complete((V) CONTENT_UPDATER.get(NettyResponseFuture.this));
272
}
0 commit comments