1

I created a new .NET Serverless Application and published it on Lambda and I want to enable the GZIP (Br) Compression.

However, it gives me this Error: ERR_CONTENT_DECODING_FAILED

It's working properly on localhost.

I have already enabled the Compression option on API Gateway but it doesn't help.

What should I set up to make it working?

Thanks

powerful_j
  • 11
  • 1

1 Answers1

0

Content compression is handled by the API gateway, which sends and receives uncompressed content to and from lambdas -- lambdas are and should be unaware of any compression that might happening.

Here's the documentation for enabling compression at the API gateway: https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-gzip-compression-decompression.html

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-enable-compression.html

Kim Burgaard
  • 3,508
  • 18
  • 11