Skip to content

Conversation

@akshaymankar
Copy link

Any non OK grpc status is stringified to not make a breaking API change. Ideally
this would not be the case as the status can be useful for the application.

This commit also reverts the assumption that presence of grpc-message implies an
error. This is not according to the specification and even the server in this
repository sometimes sets grpc-message on OK. This didn't cause any issues
because the grpc-message was being lookup in the HTTP headers, while according
to the spec it must always be set in the trailers.

Partially fixes #6

Any non OK grpc status is stringified to not make a breaking API change. Ideally
this would not be the case the status can be useful for the application.

This commit also reverts the assumption that presence of grpc-message implies an
error. This is not according to the specification and even the server in this
repository sometimes sets grpc-message on OK. This didn't cause any issues
because the grpc-message was being lookup in the HTTP headers, while according
to the spec it must always be set in the trailers.
pcapriotti added a commit to wireapp/wire-server that referenced this pull request Sep 24, 2021
We now depend on a fork of http2-grpc-haskell containing fixes for:

haskell-grpc-native/http2-grpc-haskell#46
haskell-grpc-native/http2-grpc-haskell#48

as well as the master of http2-client:

https://github.com/lucasdicioccio/http2-client
pcapriotti added a commit to wireapp/wire-server that referenced this pull request Sep 28, 2021
* Merge http2 grpc fixes

We now depend on a fork of http2-grpc-haskell containing fixes for:

haskell-grpc-native/http2-grpc-haskell#46
haskell-grpc-native/http2-grpc-haskell#48

as well as the master of http2-client:

https://github.com/lucasdicioccio/http2-client

* Clarify comment about http2-client fixes

Co-authored-by: jschaul <jschaul@users.noreply.github.com>
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.

Nicer handling for gRPC status codes.

1 participant