AWS APi Gateway VPC LINK - Make sure you are passing in a Gzip Stream

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



AWS APi Gateway VPC LINK - Make sure you are passing in a Gzip Stream



I am using VPC link in API GATEWAY to connect to rest service in EC2 instance. However, octet stream responses are not getting correctly passed through. Error getting at client side is "Make sure you are passing in a Gzip Stream". Do I need to make any changes in API gateway or in Spring REST service headers? REST service returns the correct response if invoked directly.




1 Answer
1



Hurray! Resolved it.
Added "Accept-encoding" : "identity" header in client side.
in API Gateway setting, enabled "content encoding".



worked like a charm :)



PS: Make sure you deploy the API even though it is just settings!!






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard