Skip to content

Commit b52910b

Browse files
authored
Java 11 HTTP client incorrectly reports 'invalid URI' exception message when cause is thread interruption (#2191)
1 parent ce0d87f commit b52910b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java11/src/main/java/feign/http2client/Http2Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public Response execute(Request request, Options options) throws IOException {
9999
httpResponse = clientForRequest.send(httpRequest, BodyHandlers.ofByteArray());
100100
} catch (final InterruptedException e) {
101101
Thread.currentThread().interrupt();
102-
throw new IOException("Invalid uri " + request.url(), e);
102+
throw new IOException(e);
103103
}
104104

105105
return toFeignResponse(request, httpResponse);

0 commit comments

Comments
 (0)