Is there any way to add error handling to stream responses? #1573
Unanswered
danechitoaie
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Have you encountered an actual error with this? Please add a PR with a reproduction |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at https://docs.litestar.dev/1/usage/responses.html#streaming-responses
What if
encode_json({"current_time": datetime.now()})
raises an exception? It seems the status code is always 201.Beta Was this translation helpful? Give feedback.
All reactions