I was trying to call a backend using webclient, which is "chunked" response. But, it appears StringDecoder failed to decode chunked response. As I can see following line logged
LN="o.s.c.c.StringDecoder" [3d736ae4] Decoded "?�????????�V�RPPPrO-?J-.��+NU�R220P(.MNN-.N+�Q�?+).I,)-�?�%�??)(y$??T*?$�d(��?)���(䦖d�(q�r??���}X???"
However, actual response from backend is plain json with following response header :
Content-Encoding : gzip
Vary : Accept-Encoding, User-Agent
Transfer-Encoding : chunked
Couldn't find any similar post on SO, which could point to handle chunked type response using webclient.
Code snippet of webclient part :
Mono<ResponseEntity<String>> response = client.get().uri(url)
.retrieve();
.onStatus(HttpStatus::isError, t -> Mono.empty())
.toEntity(String.class);