grpc-web icon indicating copy to clipboard operation
grpc-web copied to clipboard

Compression handling uses wrong error codes

Open jhump opened this issue 1 year ago • 1 comments

According to the gRPC docs for compression, when a server sends a response using an unrecognized/unsupported encoding the client MUST report the error with an internal error code. (See bullet 5 in the test cases section of that doc.)

Similarly, when a server sends a message where the envelope has the “compressed” bit set, but there is no encoding for the stream (or the encoding is “identity”), the recipient MUST fail with an internal error code.

The client in this package returns an unknown error in both of these situations instead of internal.

jhump avatar May 30 '24 17:05 jhump

@jhump Thanks a lot for reporting! Will take a look soon!

sampajano avatar Jun 04 '24 01:06 sampajano