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

Fix gRPC-Web trailers-only response handling for server-streaming RPCs #1261

Merged

Conversation

timostamm
Copy link
Member

gRPC-Web supports "trailers-only" responses - error responses with an empty body, that have all trailer fields in the response headers.

The gRPC-Web transport from @connectrpc/connect-web has a bug handling these responses: It raises an error as expected for unary RPCs, but it does not raise an error for server-streaming RPCs.

The next release of the conformance test suite will include tests for this case (added in connectrpc/conformance#935).

Signed-off-by: Timo Stamm <ts@timostamm.de>
@timostamm timostamm requested a review from srikrsna-buf October 9, 2024 13:18
@timostamm timostamm merged commit 615a175 into main Oct 9, 2024
47 checks passed
@timostamm timostamm deleted the tstamm/fix-grpc-web-client-server-streaming-trailers-only branch October 9, 2024 16:53
This was referenced Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants