lifadev / archive_aws-lambda-go-shim

Author your AWS Lambda functions in Go, effectively.
https://github.com/eawsy/aws-lambda-go-shim
Apache License 2.0
789 stars 66 forks source link

Problem with running code in lambda #44

Closed EvgenKostenko closed 6 years ago

EvgenKostenko commented 6 years ago

On my local tests with amazon Linux container everything fine and runs and works. But when I deploy it to the lambda I got:

invalid character 'ó' looking for beginning of value: SyntaxError Traceback (most recent call last): File "runtime/proxy.py", line 44, in _handle SyntaxError: invalid character 'ó' looking for beginning of value

fsenart commented 6 years ago

Hi @EvgenKostenko, Can you please provide the output of the following command: docker run --rm eawsy/aws-lambda-go-shim version along with the content of the handler you try to execute or any further info in order to be able to assist you and find what's going wrong.

fsenart commented 6 years ago

And please double check you use Python 2.7 as Lambda runtime.

EvgenKostenko commented 6 years ago

docker run --rm eawsy/aws-lambda-go-shim version 2017-11-15T22:48:08Z

screen shot 2017-11-17 at 2 39 30 pm
fsenart commented 6 years ago

Can you please provide the code you try to execute. And confirm you use the project's Makefile without any modification, so you only do make to generate your handler.zip.

fsenart commented 6 years ago

As the examples provided int the README, etc work out of the box I need to spot the difference in your process.

fsenart commented 6 years ago

I'm assuming this issue is resolved. Please reopen and comment if otherwise.