1ea8f865d6
Consuming the response body to make it part of the exception message means that it may not be readable anymore later, depending on whether the entity is repeatable or not. Turns out that the response body tells a lot about the error itself, and considering that we don't expect bodies to be incredibly big for errors, we can wrap the entity into a BufferedHttpEntity to make it repeatable. Closes #19622 |
||
---|---|---|
.. | ||
main/java/org/elasticsearch/client | ||
test/java/org/elasticsearch/client |