-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
version
- Spring Boot 2.6.2
code
@SpringBootApplication
class FluxErrorHandlingApplication
fun main(args: Array<String>) {
runApplication<FluxErrorHandlingApplication>(*args)
}
@Configuration
class Config {
@Bean
fun router(handler: Handler) =
org.springframework.web.reactive.function.server.router {
GET("/error", handler::handle)
}
}
@Component
class Handler {
fun handle(request: ServerRequest): Mono<ServerResponse> {
throw RuntimeException()
}
}
result
curl -v localhost:8080/error master ✭ ✚ ✱
* Trying 127.0.0.1:8080...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /error HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: application/json
< Content-Type: application/json
< Content-Length: 131
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug