Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DirectLambda - Giving 502 from ALB on some requests #52

Closed
huntharo opened this issue Jan 1, 2024 · 0 comments · Fixed by #53
Closed

DirectLambda - Giving 502 from ALB on some requests #52

huntharo opened this issue Jan 1, 2024 · 0 comments · Fixed by #53

Comments

@huntharo
Copy link
Contributor

huntharo commented Jan 1, 2024

Problem

  • The ALB was generating a 502 on routes that gave 404
  • The issue was that the content-length response header was a number instead of a string
  • The ALB will not accept a number in the content-length header

Upstream Issue

CodeGenieApp/serverless-express#563

Upstream Solution

H4ad/serverless-adapter#74

Had to switch from serverless-express to serverless-adapter to get the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant