grpc / grpc/grpc-web

Does gRPC-Web Javascript client application supports gzip compression from gRPC .Net service?

Open
#1,000 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
802
Avg merge
1d 7h
Merged PRs (30d)
5

Description

I have a .Net gRPC service that returns gzip compressed response with "grpc-encoding" response header set to gzip. However, the protoc generated js files were not able to decode the response and failing with the error "net::ERR_CONTENT_DECODING_FAILED". The client was able to read the response from the service correctly when gzip compression is not done at the service. Setting the "content-encoding" response header also does not solve the issue.

I understand that the browser is supposed to handle this decoding but it is not happening for gRPC response calls. Can you please let know whether gRPC-web with Javascript client works with gzip response data from server?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.