IllegalStateException in org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound
Describe the bug OpenApiResourceNotFoundException handler fails with IllegalStateException
[19303290-1373] There was an unexpected error (type=Internal Server Error, status=500).
Could not resolve parameter [1] in public org.springframework.http.ResponseEntity<org.springdoc.api.ErrorMessage> org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound(org.springdoc.api.OpenApiResourceNotFoundException,org.springframework.web.context.request.WebRequest): No suitable resolver
java.lang.IllegalStateException: Could not resolve parameter [1] in public org.springframework.http.ResponseEntity<org.springdoc.api.ErrorMessage> org.springdoc.core.SpringDocConfiguration$OpenApiResourceAdvice.handleNoHandlerFound(org.springdoc.api.OpenApiResourceNotFoundException,org.springframework.web.context.request.WebRequest): No suitable resolver
at org.springframework.web.reactive.result.method.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:197)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException:
Error has been observed at the following site(s):
|_ checkpoint ⇢ HTTP GET "/v3/api-docs/test" [ExceptionHandlingWebHandler]
To Reproduce Steps to reproduce the behavior: On spring boot 2 Web flux with Open API 3 demo for example : http://158.101.164.60:8082/v3/api-docs/test
- What version of spring-boot you are using? 2
- What modules and versions of springdoc-openapi are you using? 1.5.3
- What is the actual and the expected result using OpenAPI Description (yml or json)? N/A
- Provide with a sample code (HelloController) or Test that reproduces the problem I use springdoc demo site to reproduce
Expected behavior
- A clear and concise description of what you expected to happen. A correct error handling
- What is the expected result using OpenAPI Description (yml or json)? N/A
@speralta,
Can you add the source code of your sample to reproduce this issue. (this is the most important part)?
I used your hosted sample.
Not sure which sample you are refering to. They are all deployed without any issue! I am closing this, and if you have any enhancements to propose, try to be much more explicit.
The link i used is on the README.md here : https://github.com/springdoc/springdoc-openapi/blob/master/README.md "Demo Spring Boot 2 WebFlux with OpenAPI 3."
I know the demo works well. The problem is when you try to access a not existing group : http://158.101.164.60:8082/v3/api-docs/test
Much clearer, with your last line description!