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

Server Sent Events stream get buffered when not using EventSource #30686

Open
leilengma opened this issue Nov 28, 2024 · 0 comments
Open

Server Sent Events stream get buffered when not using EventSource #30686

leilengma opened this issue Nov 28, 2024 · 0 comments
Labels
stage: needs investigating Someone from Cypress needs to look at this

Comments

@leilengma
Copy link

leilengma commented Nov 28, 2024

Current behavior

When connecting to a server sent event endpoint:

  • events arrive correctly and on time with EventSource object
  • no event arrives when using fetch api for the connection until the server closes the connection -> looks like cypress is buffering the content in background

Desired behavior

It shouldn't be matter whether fetch or EventSource is chosen for a Server Sent Event api connection. Events should arrive on time and not get buffered.

Test code to reproduce

checkout this repo https://github.com/leilengma/cypress-sse-issue
npm install and lunch cypress
start the default test case and open console in browser
cypress_sse_console
You can only see logs from the eventsource object
open chrome and visit http://localhost:3008 and then open console
chrome_sse_console
you can see logs from both eventsource and fetch

Cypress Version

13.16.0

Node version

v20.17.0

Operating System

windows 10

Debug Logs

No response

Other

No response

@jennifer-shehane jennifer-shehane added the stage: needs investigating Someone from Cypress needs to look at this label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs investigating Someone from Cypress needs to look at this
Projects
None yet
Development

No branches or pull requests

2 participants