I would like to use API Gateway to pass through binary payloads from a local Express.js server that sends ZIP files in response to GET requests.
However, API Gateway seems to interpret the payload as a string, because I receive the following error when I test the method:
Execution failed due to configuration error: Integration response of reported length 35508489 is larger than allowed maximum of 10485760 bytes.
The response headers of my endpoint are as follows:
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Cache-Control: public, max-age=0
Connection: keep-alive
Content-Disposition: attachment; filename="rrAIkB6D_v8Htun4hpBx9.zip"
Content-Length: 34173953
Content-Type: application/zip
Date: Fri, 22 Mar 2019 08:37:38 GMT
ETag: W/"2097401-169a0b780ff"
Last-Modified: Thu, 21 Mar 2019 14:46:14 GMT
The download works when the endpoint is accessed directly.
Did I miss something in the configuration?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)