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

Stream issues in FastAPI web app hosted on IIS with HttpPlatformHandler v2 RC3 #6

Open
1 task done
NewGHUser4321 opened this issue Sep 12, 2024 · 0 comments
Open
1 task done
Labels

Comments

@NewGHUser4321
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

FastAPI app is hosted on IIS with HttpPlatformHandler as in this blog. Works fine for normal response. When the response is streamed, instead of getting chunks as is from the server, I'm getting bunch of chunks at a time on client side. After some research, I saw this blog where it mentions SSE(Server-Sent Events) issues with HttpPlatformHandler v1.2 (from Microsoft). I upgraded it to HttpPlatformHandler v2 RC3, still no luck. It seems to be doing the same. Please note that streaming works fine when I run the Uvicorn server manually and access the streaming endpoint. Isse is only when I access the IIS hosted endpoint.

Expected Behavior

Stream chunks of data as is without caching.

Steps To Reproduce

Streaming data exactly as in this repo
Look at the /stream endpoint

Exceptions (if any)

No response

HttpPlatformHandler Version

HttpPlatformHandler v2 RC3

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant