2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
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.
con risposta 9 mesi fa
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata un anno fa
What language is that you're using?
I am using nodejs (javascript)