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

SSE not showing any output #1642

Closed
jasonkochel opened this issue Nov 18, 2024 · 5 comments
Closed

SSE not showing any output #1642

jasonkochel opened this issue Nov 18, 2024 · 5 comments
Labels
feature request New feature or request Priority Implement this asap

Comments

@jasonkochel
Copy link

Describe the bug
When I connect to an endpoint using server-sent events, nothing shows in the Response tab. Nothing shows during the streaming, and even after the entire call is complete (and it shows a 200 status), the Response tab is empty. Testing the same endpoint in Chrome works as expected.

To Reproduce
Make a connection to https://sse.dev/test

Expected behavior
Messages to be shown as they are received

Platform:

  • OS: Windows 11
  • vscode version: 1.95.3
  • node version: 21.2.0
  • extension version: 2.29.12

Are you using the free version/paid version/trial:
Paid (I just subscribed to the paid version specifically to use SSE)

@jasonkochel jasonkochel added the bug Something isn't working label Nov 18, 2024
@jasonkochel
Copy link
Author

I ended up getting this to work, but there are some confusing bits that may help others or be improved.

I was creating the request as part of a collection. "New Request" on the collection context menu does not give an option for "Event Stream Request". I had set it up as a normal GET request, and the button did show "Connect" instead of "Send", so it appeared to be doing the same thing as an actual "Event Stream Request", but just not showing any output.

I see now that you have to do "New Request -> Event Stream Request" from the top button. This puts it in the "Activity" tab but I don't see any way to add it to a collection.

@rangav
Copy link
Collaborator

rangav commented Nov 18, 2024

Hi @jasonkochel Thanks for the feedback. I will add the option to save SSE to collection in the next update.

@rangav rangav added feature request New feature or request Priority Implement this asap and removed bug Something isn't working labels Nov 18, 2024
@rangav
Copy link
Collaborator

rangav commented Nov 21, 2024

Related #1522

@rangav
Copy link
Collaborator

rangav commented Nov 23, 2024

Save to collection option enabled for SSE and WS requests in v2.32.3

Please update and let me know if any feedback.

@rangav rangav closed this as completed Nov 23, 2024
@jasonkochel
Copy link
Author

Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Priority Implement this asap
Projects
None yet
Development

No branches or pull requests

2 participants