Amazon API gateway - proxied requests return unreadable data

We recently started exploring the Amazon api gateway service, and I set up several apis with explicit mapping. They function properly.

However, the proxy mapping seems to return unexpected / unreadable content.

This is what we get:

[o0JŮ? -pǡjB? ڪ ^ ɷ īcgCUK

Furthermore, this only happens when we hit it from the application / Postman. Making api test calls from the functions of the gateway control panel, as expected.

Does any configuration sound? Has anyone else experienced this issue?

+1
source share
1 answer

In a comment from Michael - sqlbot, the problem was that our backend squeezed all the answers using gzip. AWS Api Gateway does not currently support gzip for HTTP proxy requests. per https://forums.aws.amazon.com/thread.jspa?messageID=747449

We do not currently support gzip. However, you can work around using a lambda proxy for your POST method ( http://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-lambda.html )

0
source

Source: https://habr.com/ru/post/1263374/


All Articles