question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stream events from springboot2 stopped SSE after the 1st message.

See original GitHub issue

Resilience4j version: 1.6.1

Java version: 8

Desc: /actuator/stream-circuitbreaker-events stops/terminates the connection right after consuming the 1st message. I could not trace out to any exception from producer side or consumer side. I tried consuming from curl , postman etc. I verified that consumer is not terminating the connection.

This experience is only from Springboot2. ratpack is producing SSE continuously.

I can take a dive but creating an issue for now so that other developers might find it

e.g

curl -v  http://localhost:9080/actuator/stream-circuitbreaker-events
*   Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 9080 (#0)
> GET /actuator/stream-circuitbreaker-events HTTP/1.1
> Host: localhost:9080
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< transfer-encoding: chunked
< Content-Type: text/event-stream;charset=UTF-8
<
id:backendA
event:SUCCESS
data:{"circuitBreakerName":"backendA","type":"SUCCESS","creationTime":"2020-12-14T10:45:10.037228-06:00[America/Chicago]","errorMessage":null,"durationInMs":0,"stateTransition":null}

* Connection #0 to host localhost left intact
* Closing connection 0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
vijaycsecommented, Dec 15, 2020

Sure. Will do

0reactions
vijaycsecommented, Jan 25, 2021

Closing this issue as PR is merged

Read more comments on GitHub >

github_iconTop Results From Across the Web

Server sent event - Stream is not reconnecting after few ...
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on ......
Read more >
Server-Sent Events in Spring - Baeldung
Understanding Server-Sent Events​​ An SSE is a specification adopted by most browsers to allow streaming events unidirectionally at any time. The ...
Read more >
Server-Sent Events (SSE) in Spring 5 with Web MVC and Web ...
When updates are available, the server sends a response to the client and closes the connection. If updates are not available for some...
Read more >
Full Reactive Stack with Spring Boot, WebFlux and MongoDB
A practical guide to building a full-reactive web app with Spring Boot (WebFlux) and MongoDB with its reactive driver.
Read more >
Analyzing data stream with Siddhi and Spring Boot 2
First of all, I'm using the se.transmode.gradle:gradle-docker:1.2 plugin that allows me to build a docker image for the application. That's why ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found