-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Custom Actuator Endpoint with MediaType as text/event-stream is not working #42470
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
Sorry but Spring Boot 2.7.x is out of open source support. We can reopen this issue if you provide a minimal sample that reproduces the problem on a supported version (3.2.x+). See https://spring.io/projects/spring-boot#support Thanks! |
resilience4j-spring-boot3-demo.zip |
Thanks, @talasila-sairam. Unfortunately, there are really too many moving parts in that code for us to start looking at it. As I said on #42475, please reduce it to the bare minimum that's required to reproduce the problem. As I understand the problem, that should be dependencies on only the actuator and webflux starters and a single custom endpoint that uses text/event-stream. |
Actually, on second look, I'm not surprised that this doesn't work. You're using You may be able to use |
|
You may be able to use
Please see #31768. If you have any further questions, please follow up on Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use GitHub issues only for bugs and enhancements. |
Versions That i have used
Java:- OpenJDK-11
Spring boot: 2.7.0
reactor-core: 3.4.28
netty: 1.0.30
Problem: I created a custom actuator endpoint to expose a data stream, however despite events being triggered, requests are taking a long time to complete and no data is being released.
This is my simple controller


I noticed that, while the same configuration functions perfectly when using the restController, it does not function when using the endpoint and readOperation annotation.
The text was updated successfully, but these errors were encountered: