You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
isBase64Encoded field missing from APIGatewayProxyResponseEvent #46
I'm facing the same issue. Also, I miss the isBase64Encoded attribute on the request object too.
I think it would be easy to fix. If you guys don't mind I can send you a PR with a patch.
I've juste created a lambda returning application/pdf data encoded as base64.
APIGatewayProxyResponseEvent response = new APIGatewayProxyResponseEvent();
response.setStatusCode(200);
HashMap<String, String> headers = new HashMap();
headers.put("Content-Type", "application/pdf");
response.setHeaders(headers);
response.setIsBase64Encoded(true);
response.setBody(base64Document);
In the api gateway logs, I cannot see anywhere isBase64Encoded in the response received from lambda. Where is it supposed to be set ?
My client keeps receiving response from api gateway as base64 encoded string. I would like the data to be sent as binary data.
The Accept header sent by my client contains "application/pdf" as the only one parameters and the mediaType in setting of the api gateway is also "application/pdf" (ven tried it with /).
Activity
miere commentedon May 11, 2018
I'm facing the same issue. Also, I miss the
isBase64Encodedattribute on the request object too.I think it would be easy to fix. If you guys don't mind I can send you a PR with a patch.
miere commentedon May 14, 2018
I've overlooked the request object. Indeed, the
isBase64Encodedis there.But, off course, the response object still misses this attribute.
michaelwiles commentedon Sep 12, 2018
Please can this be merged...
bmoffatt commentedon Feb 21, 2019
merged #48
jchapelle commentedon Nov 4, 2020
I've juste created a lambda returning application/pdf data encoded as base64.
In the api gateway logs, I cannot see anywhere isBase64Encoded in the response received from lambda. Where is it supposed to be set ?
My client keeps receiving response from api gateway as base64 encoded string. I would like the data to be sent as binary data.
The Accept header sent by my client contains "application/pdf" as the only one parameters and the mediaType in setting of the api gateway is also "application/pdf" (ven tried it with /).
Could you help ?
michaelwiles commentedon Nov 5, 2020
Try this:
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-payload-encodings-configure-with-console.html
Updated readme for log4j2 (#46)
Updated readme for log4j2 (#46) (#460)
Updated readme for log4j2 (#46)