java.lang.IllegalArgumentException: Deflate Content-Encoding is not supported by feign-hc5 #2460
Labels
help wanted
Issues we need help with tackling
waiting for feedback
Issues waiting for a response from either to the author or other maintainers
When we upgraded to spring-boot-dependencies-3.3.0, we also upgrade the spring-cloud according to https://spring.io/blog/2024/05/31/spring-cloud-2023-0-2-oss-and-2022-0-7-enterprise-have-been-released, Then my service met error
"Caused by: java.lang.IllegalArgumentException: Deflate Content-Encoding is not supported by feign-hc5"
Here is some finding of troubleshooting:
As we set spring.cloud.openfeign.compression.request.enabled=true, so the FeignContentGzipEncodingInterceptor(spring-cloud-openfeign-core-4.1.2) is enabled too
If the compression condition matched, it will add fixed header(Content-Encoding: gzip,deflate), but after the PR #2247, it will throw IllegalArgumentException once 'deflate' exists in header 'Content-Encoding'
I think it is incompatible change, @fbus or term, Please take a look on it
The text was updated successfully, but these errors were encountered: