-
Notifications
You must be signed in to change notification settings - Fork 38.4k
REST client doesn't receive the response from PATCH API call #34724
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
Comments
Please provide a minimal sample application. |
Please find the sample application here
PATCH request logs: (Unlike GET call, response is returned but not received by the client)
|
Hello @bclozel , If nobody is actively working on this, I can pick it up. Please let me know. |
I can't reproduce the issue you're seeing. Please advise.
|
Thanks @bclozel for looking into it. I am also using the same cURL version on Mac. Even I tried using Insomnia API client too. No luck. Interesting thing is all other HTTP methods work fine. Please look at the attached gif. |
My best guess is that this is due to your local setup. Maybe a local firewall or antivirus? In the meantime I will close this issue as it appears unrelated to Spring. |
Hello, Could you please share an example using the PUT method? Thank you! |
Spring Boot Version: 3.4.4
Do we need to configure something extra for using the HTTP method PATCH?
When client sends the PATCH REST call to spring boot server, controller method receives the request and sends the request back by wrapping the response in
ok()
method. However, client doesn't receive the response back and keep waiting for response.The moment method mapping is replaced from PATCH to PUT. REST call works and client receives the response.
Log for PATCH call:
Then, nothing happens and client keep waiting for response.
When request is cancelled by the client:
The text was updated successfully, but these errors were encountered: