aws / aws/aws-lambda-runtime-interface-emulator

Getting a 502 Bad Gateway response during the local testing of the container based lambda

Open
#37 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
1.1k
Forks
118
Avg merge
42m
Merged PRs (30d)
2

Description

I am following the example here https://pypi.org/project/awslambdaric/ . When I run the curl command to test the lambda I get no response. With the increased verbosity in the curl command I get the error 502 Bad gateway. The peculiar thing is that sending curl command again hangs - with the last message being "upload completely sent off: 2 out of 2 bytes". A standard docker nginx test works fine (something similar to https://www.docker.com/blog/how-to-use-the-official-nginx-docker-image/)

Contributor guide

Open the contributing guide

Research direction

Start with the awslambdaric example and reproduce the reported curl request against the container, including verbose output and the second request that hangs. Compare the Lambda container behavior with the working Docker nginx test; done means identifying and fixing or clearly documenting the cause of the 502 and hanging request.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, docker, python
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.