RestClient returns 403 after apache.httpclient5 upgrade from 5.3.1 to 5.4
I use RestClient.Builder
to build a RestClient instance with a custom request factory backed by apache.httpclient5 in an application written with SpringBoot 3.3.6. Initially, apache.httpclient 5.3.1 was used and everything was working just fine. After upgrading the dependency to apache.httpclient 5.4 all initiated requests started to fail with 403 [No body]
response. Downgrading back to 5.3.1 solved the issue. Does anyone know what could be causing the issue and how to fix it?
Spring Boot: NoSuchMethodError with HttpClient in Spring WebMVC Application
I’m encountering a NoSuchMethodError
in my Spring Boot application when trying to execute an HTTP request using org.apache.hc.client5.http.classic.HttpClient
. The full stack trace is as follows: