Cannot receive streaming response and SSE API data when serve behind caddy #832
Answered
by
hermeschen1116
hermeschen1116
asked this question in
Q&A
-
|
As mentioned in the title, I currently serve my FastAPI application with Granian behind Caddy. However, I am unable to receive data when calling the streaming response and SSE API while a connection appears to have been established. These APIs function correctly when served without Caddy. Is additional setup required to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Answered by
hermeschen1116
Apr 2, 2026
Replies: 1 comment 5 replies
-
|
Hard to make guesses without further information (like the caddy configuration) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gi0baro Hello, I have identified the cause of the issue. It is related to a previous issue I raised. The same issue causes my API to fail when served by Docker on Linux (while it functions correctly on macOS). Removing the actual cause
await request.is_disconnected()resolves the problem.