Hi ,
Trying to enable http.compression on elasticsearch but the response is not able to parse through handlers on RestHighLevelClient.
Error :
Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
Client is enabled with :
Header defaultHeaders =
new Header {
new BasicHeader(HttpHeaders.ACCEPT_ENCODING, "gzip,deflate"),
new BasicHeader(HttpHeaders.CONTENT_ENCODING, "gzip,deflate")
};
is there any other configuration, to enable the decompression on the client side with RestHighLevelClient.
Thanks