-
Notifications
You must be signed in to change notification settings - Fork 672
Rest endpoint echoing request attribute fails with: Only one connection receive subscriber allowed. #718
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
@hmble2 Please provide a reproducible scenario. Typically this exception mean that you try to obtain the body more than once. |
@violetagg below sample reproduces the error
|
This issue is related to spring-projects/spring-framework#22284 @rstoyanchev The application does not get the request body but declares |
A basic REST endpoint that simply echoes headers (and other request attributes), fails with:
Only one connection receive subscriber allowed.
reactor service signature looks like this (It does nothing but accumulate headers, body, params in the returning Map):
public Mono<ResponseEntity<Map<String, Object>>> service(@RequestBody(required = false) byte[] rawBody, ServerHttpRequest request)
service uses latest spring boot 2.14 (bundles reactor-netty 0.8.6 and reactor-core 3.2.8)
Exception stacktrace:
The text was updated successfully, but these errors were encountered: