Yaffle / EventSource

a polyfill for http://www.w3.org/TR/eventsource/
MIT License
2.13k stars 337 forks source link

Event does not show up in the Chrome EventStream subtab inside the Network tab when viewing the eventstream connection #79

Open stevus opened 7 years ago

stevus commented 7 years ago

If I use the native EventSource, I can see messages coming through with the type and data listed, however if I use eventsource-polyfill, I don't see this information.

Yaffle commented 7 years ago

please update the eventsource-polyfill, thanks

MmtBkn commented 5 years ago

Hello, I'm having the same issue and I'm using version 1.0.5 and Chrome Version 72.0.3626.109

Yaffle commented 5 years ago

@MmtBkn , hello, it is very strange, could you check if polyfill is used instead of native EventSource and why?

verbeeckjan commented 5 years ago

@Yaffle I'm sorry to resurrect this closed issue but I have exactly the same problem. I'm using 1.0.8 and Chrome 76.0.3809.100. I'm using authentication so I can't test it without the pollyfill

Yaffle commented 5 years ago

@verbeeckjan, polyfill uses the fetch api, so you should see it on the XHR subtab. Please look

verbeeckjan commented 5 years ago

Screenshot 2019-08-21 at 10 13 16

My call to /events shows up in the XHR tab but the 'EventStream' tab replaces the response and preview tabs when selecting a request. In this eventstream tab nothing shows up. Even though I get my messages (in the console on the screenshot)

larsnedb commented 5 years ago

I have the exact same problem as @verbeeckjan. Events are received and processed by my application, but they don't show up in the eventstream tab in Chrome.

Yaffle commented 5 years ago

@larsnedb , isn't this a bug in Chrome DevTools ? Do you have a linked to the issue in the DevTools?

josepharhar commented 5 years ago

I opened a bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=1025893 Please star the bug to help the DevTools team prioritize this issue

SantoJambit commented 4 years ago

I don't see anything in firefox either.

Vaggal commented 4 years ago

I think that the DevTools will not show the events if the native event source isn't used. Is this really a bug in EventSourcePolyfill or even Chrome or it is expected that they won't be displayed there if the polyfill is used? They have the same issue in another polyfill https://github.com/EventSource/eventsource/issues/94

BonBonSlick commented 3 years ago

Same issue. https://github.com/Yaffle/EventSource/issues/165 This must be fixed on either way or another way to debug a stream. With polyfil we can not debug and track normally. Tested with Mozila and Chrome.

doraemonxxx commented 2 years ago

I have the same issue, do we have a workaround to solve the issue?

doraemonxxx commented 2 years ago

REMEMBER : the EventSourcePolyfill is not a EventSource because it wraps up by xmlhttprequest. This will broke your server because of simultaneously fetch request.

GuanJdoJ commented 1 year ago

I have same problem, too. Is there any solution?

jasonred8 commented 1 year ago

I have seen the chatGPT network request/response, and I found a request called conversation, there is only a request but it cannot show a response, then I have a deep investigation and found this issue, LOL ... Now I basically think that a Google Chrome DevTool does not support if we use nonnative EventSource yet.

Yuki-Asuuna commented 1 year ago

Now I basically think that a Google Chrome DevTool does not support if we use nonnative EventSource yet.

I have the same problem, too. The chatgpt eventStream response is empty.

maltoze commented 1 year ago

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

jiangxiaoqiang commented 1 year ago

I am facing the same problem, seems chatgpt with the same issue: https://stackoverflow.com/questions/75841904/why-did-not-found-the-chatgpt-event-stream-data-in-google-chrome-devtools

huoyixin commented 1 year ago

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

pmcdougle-hbs commented 3 months ago

Can y'all comment what Content-Type responses your servers are sending for the event stream? Is it possible that they're not sending text/event-stream?

The fetch example here, does seem to work.