Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
HttpClientErrorException missing response body if callback is registered [SPR-12887] #17485
AsyncRestTemplate.execute returns ListenableFuture that allows to register callbacks. Let's say we have following example:
If 4xx error occurs during REST call, two HttpClientErrorException will be created, one of them containing response body and another one missing.
Sample maven project is attached.