I have deployed a Gateway API. When I test it from within AWS console, it works. When I test it using "Postman" (by sending Accept-Encoding:identity header), it works.
But when I test it using (Chrome) browser, it fails ... and I get this error ...
ERR_CONTENT_DECODING_FAILED
I have already added the header Accept-Encoding:identity
into 'Integration Request' in the gateway API as suggested here and here. But its not making any difference.
Can someone please help ?
Any other questions, please let me know.
Thanks
Accept-Encoding: identity
is a slight hack, telling your origin server thatContent-Encoding: gzip
is not supported, so thatTransfer-Encoding: chunked
will not be engaged, since some servers switch to chunked transfer encoding when they decide gzip content. If your back-end is doing chunked encoding anyway, this will be the "real" problem. Can you capture the response headers from the origin (back-end) server? - Michael - sqlbot