question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Response has undefined headers - Internal Server Error

See original GitHub issue

There 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:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
brett-vendiacommented, Jan 28, 2021

Shall we close this in favour of 355?

1reaction
seawattscommented, Jan 28, 2021

Nevermind, looking at the AWS Docs setting isBase64Encoded to true should be fine.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found