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

Multi tool use
Multi tool use

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.

i,qKyuQU4toNC6gJlB3W9On9e prkZy
g8 sZYY7,sF2kRrfFnwQ7EHK7Ct4RLWXZHPMnDql 76,iH,ryAu JzhtlOHWm,5UCtg0qf 97YNyj,S1 TQWiofHVjfAxFlZY08

Popular posts from this blog

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

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3