Open HP2706 opened 5 months ago
Same issue on my side
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote š on the issue description or subscribe to the issue for updates. Thanks!
Same issue plz fix
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote š on the issue description or subscribe to the issue for updates. Thanks!
Link to the code that reproduces this issue
https://github.com/HP2706/nextjs_streaming_bug
To Reproduce
to reproduce run npm run dev from root of the project preferably use an virtual environment with Python 3.9.18
next click on the "stream" button about 10 seconds later the number 1 .. 10 will appear on the screen next to next.config.mjs and uncomment compression : false now reload and click again. this time the numbers will actually be stream as expected from the fastapi endpoint
Current vs. Expected behavior
i would expect the client to receive the streamingResponse from fastapi in chunks and not all at once even even without explicitly disabling compression
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed)
Additional context
No response