Response has undefined headers - Internal Server Error
See original GitHub issueThere is something happening between SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE
and SERVERLESS_EXPRESS:FORWARD_RESPONSE:CONTENT_TYPE
and SERVERLESS_EXPRESS:FORWARD_RESPONSE:HTTP_RESPONSE
The output back to the browser is
{
"message": "Internal Server Error"
}
Debug Logs
2021-01-27T18:03:30.694Z e3cc35a9-58cb-433f-84bc-2e721658613d DEBUG {
message: 'SERVERLESS_EXPRESS:FORWARD_RESPONSE:EVENT_SOURCE_RESPONSE',
successResponse: {
statusCode: 302,
body: '',
headers: [Object: null prototype] {
vary: 'Origin',
'access-control-allow-credentials': 'true',
'x-dns-prefetch-control': 'off',
'expect-ct': 'max-age=0',
'x-frame-options': 'SAMEORIGIN',
'strict-transport-security': 'max-age=15552000; includeSubDomains',
'x-download-options': 'noopen',
'x-content-type-options': 'nosniff',
'x-permitted-cross-domain-policies': 'none',
'referrer-policy': 'same-origin',
'x-xss-protection': '0',
'set-cookie': [Array],
location: 'https://myapp.ai/
},
isBase64Encoded: false
}
}
2021-01-27T18:03:30.694Z e3cc35a9-58cb-433f-84bc-2e721658613d DEBUG {
message: 'SERVERLESS_EXPRESS:FORWARD_RESPONSE:CONTENT_TYPE',
contentType: ''
}
2021-01-27T18:03:30.694Z e3cc35a9-58cb-433f-84bc-2e721658613d DEBUG {
message: 'SERVERLESS_EXPRESS:FORWARD_RESPONSE:HTTP_RESPONSE',
headers: undefined,
statusCode: 302
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
WebMethod response header is 500 internal server error but ...
WebMethod response header is 500 internal server error but the response body contains expected data · 1. First, remove the try catch. Let...
Read more >500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >GET /values resulting in status code 500 · Issue #308 - GitHub
When our Travis CI build runs yarn bundlesize , the size check against master fails and we get some http logs indicating a...
Read more >How to Fix a 500 Internal Server Error on Your WordPress Site
The 500 Internal Server Error status code occurs when the server encounters an error that prevents it from fulfilling the request.
Read more >Add new attribute to JSON Response from URL-OPEN - Forums
So I tried iterating over the array and then adding the assigning my value to the object. But I'm getting an error "undefined...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Shall we close this in favour of 355?
Nevermind, looking at the AWS Docs setting
isBase64Encoded
to true should be fine.