aws/aws-lambda-runtime-interface-emulator

Trying to test a simple lambda - getting Unable to unmarshal error

pokalas1015 opened this issue · 5 comments

"Unable to unmarshal input: Expecting value: line 1 column 1 (char 0)"
Dockerfile:
FROM public.ecr.aws/lambda/python:3.8
ADD aws-lambda-rie /usr/local/bin/aws-lambda-rie]

COPY entry_script.sh ./
COPY myfunction.py ./

CMD ["myfunction.lambda_handler"]

myfunction.py:
import json
import sys

def lambda_handler(event, context):
print("Hello from AWS Lambda!")

Sending Error Response: Runtime.Unknown
when turned on debug log level

Worked! Does not work with curl, works with Invoke_Web

Close this issue

I'm interested to know what command you were running originally, but I'm glad it was resolved.