2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
That looks fine to me unless you've enabled multi-value headers in which case the response structure is different. Can you provide more information such as logging output from your Lambda containing the request and the response logged just before "return response"?
0
So, I just had this issue, and since an AWS engineer helped me resolve it, I figure I post the answer here too.
All your headers have to have a string value. Returning a number, or something other than a string in the header, guarantees you a 502 and InvalidResponseError. I don't think this is mentioned anywhere in the AWS documentation.
respondido há 9 meses
Conteúdo relevante
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 meses
- AWS OFICIALAtualizada há um ano
What language is that you're using?
I am using nodejs (javascript)