Request CompletableFuture
will never complete if an exception occurs
#677
Labels
CompletableFuture
will never complete if an exception occurs
#677
Issue Template Requirements
Issue must be of the specified template and follow these requirements or it will be ignored.
Pre-Checklist
I made sure...
Describe the bug
CompletableFuture
returned fromIGClient.sendRequest(IGRequest<T> req)
will never complete if anIOException
occurs while processing the response body inResponseBody.string()
. Actually thrown exception does not affectCompletableFuture
state and.get()
or.join()
call will await endlessly.How to reproduce
You could mock
Response
parameter and throwIOException
onstring()
call.Expected behavior
CompletableFuture.get()
completes with exception responseActual behavior
CompletableFuture.get()
endlessly awaitThe text was updated successfully, but these errors were encountered: