Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.web.client.ResourceAccessException: I/O error on PATCH request for "https://example.com": Invalid HTTP method: PATCH] with root cause
restClient.patch()
.uri("https://example.com")
.retrieve()
Comment From: snicoll
@testersen "not working" is not very useful and that sample in text is hiding the information that we need. Copy/pasting the code in a vanilla restclient does not throw that exception.
Please make sure to clarify the report. If you're doing a patch against example.com then you should be able to share a small sample we can run ourselves that exhibit the problem. You can attach a zip to this issue or push the code to a GitHub repository.
Comment From: poutsma
See https://github.com/spring-projects/spring-framework/issues/31590#issuecomment-1810044580
Comment From: poutsma
See also https://github.com/spring-projects/spring-boot/issues/36266