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

[Bug]: Streamed Responses (media type text/event-stream) should not be fully awaited #175

Open
1 task done
wisskirchenj opened this issue Jun 14, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@wisskirchenj
Copy link

What happened?

When calling an http request, that returns media type text/event-stream the full answer is awaited for in the desktop version and only shown after the stream ends.
This is also different from http(ie) CLI, where chunks are displayed immediately, when they arrive.

Steps to reproduce?

1. Call any streaming endpoint - (e.g. an OpenAI's API stream endpoint).
2. Transaction spinner spins until full stream is received - only then the full response is displayed - not revealing the chunk borders...

What did you expect to happen?

I expect stream chunks displayed in response window as soon as they arrive, as most browsers and http CLI does for stream responses.
Better even, if that would be customizable.

Platform

macOS

HTTPie Desktop version

2024.1.2

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@wisskirchenj wisskirchenj added the bug Something isn't working label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant