Closed razilein closed 1 year ago
It looks like your application is using the Java HTTP client with Spring Boot 3. Was it already the case with Spring Boot 2.x?
Maybe this is a case of the httpclient upgrade and your application had a dependency on the former version? What happens if you add org.apache.httpcomponents.client5:httpclient5
as a dependency?
@bclozel Yes that was already the case with Spring Boot 2.x. I've added the dependency like suggested and it worked immediately. Thanks a lot!
Thanks for letting us know!
I had the same issue and it is fixed by adding the below to my pom.xml
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.2.1</version>
</dependency>
Facing the same issue, but after adding dependency immediately patch request worked. Thanks!!!
Thank you!
Bug report
I've upgraded spring-boot 2 to spring-boot 3. I'm requesting an external API, but the request fails. I've tested again with spring-boot 2 and everything works. Other requests to this API are working.
Here is my codesnippet:
and here is the exception. I've tested with and without ending slash to preclude an issue about this.