Transfer closed with outstanding read data remaining #2893
Labels
Needs: Triage (Functions)
potential-bug
Items opened using the bug report template, not yet triaged and confirmed as a bug
Description
When an exception is thrown, if there is a custom middleware that intercepts, and responds with a payload, transfer doesn't complete.
if I have to guess, because the length of response is not set, chunked transfer encoding is selected, however end mark is not properly sent when an exception is raised.
The reason I'm raising an exception is to let function invocation know that this function failed, I couldn't find a way to let the invocation know it failed (error) without raising an exception (I believe it would be nice to have...)
Steps to reproduce
Example
Output:
The text was updated successfully, but these errors were encountered: