Skip to content

Patch on RestClient on Spring Boot 3.2.1 not working. #32114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jamesbradlee opened this issue Jan 25, 2024 · 3 comments
Closed

Patch on RestClient on Spring Boot 3.2.1 not working. #32114

jamesbradlee opened this issue Jan 25, 2024 · 3 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue

Comments

@jamesbradlee
Copy link

jamesbradlee commented Jan 25, 2024

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()
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 25, 2024
@snicoll
Copy link
Member

snicoll commented Jan 25, 2024

@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.

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Jan 25, 2024
@poutsma
Copy link
Contributor

poutsma commented Jan 25, 2024

See #31590 (comment)

@poutsma poutsma closed this as not planned Won't fix, can't repro, duplicate, stale Jan 25, 2024
@poutsma poutsma added status: duplicate A duplicate of another issue in: web Issues in web modules (web, webmvc, webflux, websocket) and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on labels Jan 25, 2024
@poutsma poutsma self-assigned this Jan 25, 2024
@poutsma
Copy link
Contributor

poutsma commented Jan 25, 2024

See also spring-projects/spring-boot#36266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

4 participants