1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
It looks like there are a few small errors in the format of the object you're returning. There are some additional spaces in some of the keys (might just be an effect of copy and paste), isBase64Encoded
should be boolean, and statusCode
should be an integer.
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambda-functions.html#respond-to-load-balancer
This slightly modified version seems to work:
{
"headers": {
"Cache-Control": "no-store",
"Content-Type": "application/json"
},
"isBase64Encoded": false,
"statusCode": 200,
"statusDescription": "200 OK",
"body": "Lambda S3 Upload"
}
répondu il y a 2 ans
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
Thanks Ed ! Yes the spaces on statusCode and statusDescription were the culprit .