YARP keeps buffering response returned as AsyncEnumerable even if AllowResponseBuffering is set to false #2616
Labels
needs-author-action
An issue or pull request that requires more info or actions from the author.
Type: Bug
Something isn't working
Describe the bug
I am currently having setup of microservices in dotnet where Dapr with YARP is configured on gateway. In one of the service I have a api endpoint which streams response of type
AsyncEnumerable<string>
. But when hitting api through gateway responses are not streamed and if keeps in pending state until completed.To Reproduce
What steps can we follow to reproduce the issue?
When I try hitting endpoint of service directly I get expected results and can see chunks being logged in browser console as they are returned, but when request goes through gateway it keeps in pending status until it gets processed completely then only it gives response.
Also when I hit service directly I get response headers as Transfer Encoding "chunked", but when routing through gateway this doesn't happens. I also tried setting
AllowResponseBuffering
flag to false through app-setting configuration & also throughappconfig.yaml
in docker compose command to run dapr.Further technical details
The text was updated successfully, but these errors were encountered: