@RequestBody raises IllegalStateException for form data #22486
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Affects: Spring Boot 2.1.3.RELEASE
Hello!
I noticed something interesting. When you make a mistake in WebFlux application, you don't see real exception, instead you see the same exception every-time:
Example controller:
If you make correct request you will see correct response:
If you make a mistake you will receive 500 and lot's of logs that don't tell you what has happened:
You can see the same exception in application logs:
This exception is masking real problem and causing a lot of confusion. I noticed that there is a lot issues that mention this exception, so this seems like a widespread problem: https://github.com/spring-projects/spring-framework/issues?q=is%3Aissue+Only+one+connection+receive
Would it be possible to present real exception in logs to make debugging easier?
Thanks!
The text was updated successfully, but these errors were encountered: