Skip to content

Check and forward any trailers on stream end.#90

Merged
devashishdxt merged 1 commit intodevashishdxt:mainfrom
martin-keska:fix/forward-trailers-at-end-of-stream
Apr 9, 2026
Merged

Check and forward any trailers on stream end.#90
devashishdxt merged 1 commit intodevashishdxt:mainfrom
martin-keska:fix/forward-trailers-at-end-of-stream

Conversation

@martin-keska
Copy link
Copy Markdown
Contributor

When errors occur on a stream it is sent as a trailer, but the current client does not look for them. This makes an error sent from a server look like a successfully completed stream.

This PR makes tonic-web-wasm-client behave the same as most grpc implementations in that the errors in the trailer is forwarded.

When errors occur on a stream it is sent as a trailer, but the current client
does not look for them. This makes an error sent from a server look like a
successfully completed stream.

This PR makes tonic-web-wasm-client behave the same as most grpc
implementations in that the errors in the trailer is forwarded.
@martin-keska
Copy link
Copy Markdown
Contributor Author

I took the liberty of creating a PR that fixes an issue I had when using this crate on a grpc stream at work - happy to address any feedback!

@devashishdxt
Copy link
Copy Markdown
Owner

Thanks for the PR. I'll merge this and push a new version on crates.io

@devashishdxt devashishdxt merged commit 0f232d3 into devashishdxt:main Apr 9, 2026
5 checks passed
@martin-keska martin-keska deleted the fix/forward-trailers-at-end-of-stream branch April 9, 2026 08:40
@martin-keska
Copy link
Copy Markdown
Contributor Author

Thanks for the PR. I'll merge this and push a new version on crates.io

Wonderful!

Sorry for hounding you, but you might have missed the release to crates.io? Don't see it there yet!

@devashishdxt
Copy link
Copy Markdown
Owner

Thanks for the PR. I'll merge this and push a new version on crates.io

Wonderful!

Sorry for hounding you, but you might have missed the release to crates.io? Don't see it there yet!

Released on crates.io

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