Skip to content
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

"Event Stream" tab is empty in Chrome dev tools #3

Closed
lttb opened this issue Jan 18, 2021 · 6 comments
Closed

"Event Stream" tab is empty in Chrome dev tools #3

lttb opened this issue Jan 18, 2021 · 6 comments

Comments

@lttb
Copy link

lttb commented Jan 18, 2021

Hi! Thank you very much for your work.

I was wondering if you have ever faced with this issue: "Event Stream" tab is empty in Chrome dev tools:

image

It seems that this problem is related to these issues:

At the moment, it looks like that the events will be shown only if the native EventSource used, but if you could share any workarounds or ideas about it, that would be amazing. Thanks!

@vishwam
Copy link
Member

vishwam commented Feb 22, 2021

Apologies for the late reply @lttb. Yes, unfortunately that's a known issue with this approach: chrome dev tools apparently only works with the native EventSource. What we've done in Azure is to put our own logging in the onmessage callback, for example:

fetchEventSource('/api/sse', {
    onmessage(msg) {
        if (process.env.NODE_ENV === 'development') {
            console.debug('[EventSource]', msg);
        }

This is definitely less convenient, but has been enough for us to debug issues the last couple years.

@vishwam vishwam closed this as completed Feb 22, 2021
@maltoze
Copy link

maltoze commented Jul 25, 2023

there is a chrome extension to view EventStream in devtools.
https://github.com/maltoze/sse-viewer

@PvanHengel
Copy link

Curious has anyone opened a bug/feature in the Chrome project for this?

@huoyixin
Copy link

huoyixin commented Sep 7, 2023

Couldn't find a solution, so I logged all data in the console for easier debugging.

Here is my log code. group all data in a table in the console panel.
image

https://gist.github.com/huoyixin/82a8deb64aa6b380f89d6048a44dda11

@piotr-cz
Copy link

Looks like Chromium team has been actively working on the issue recently: https://bugs.chromium.org/p/chromium/issues/detail?id=1025893

@piotr-cz
Copy link

Comment on the Chromium Issue tracker:

The fix is already available in Chrome Canary starting with 123.0.6283.0. M123 will be beta on February 21st and stable on March 19th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants