aws / aws-lambda-runtime-interface-emulator

Apache License 2.0
915 stars 95 forks source link

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

Closed pokalas1015 closed 2 months ago

pokalas1015 commented 2 months ago

"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!")

pokalas1015 commented 2 months ago

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

pokalas1015 commented 2 months ago

Worked! Does not work with curl, works with Invoke_Web

pokalas1015 commented 2 months ago

Close this issue

valerena commented 2 months ago

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

pokalas1015 commented 2 months ago

Curl command, it does not work

Yahoo Mail: Search, Organize, Conquer

On Tue, Jun 18, 2024 at 7:44 PM, Renato @.***> wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>