Jatinder Singh
Jatinder Singh

Reputation: 327

Lambda An error occurred while attempting to execute your code

I am using AWS Lambda toolkit for C#. When I am publishing AWS Lambda directly it is working fine on AWS. But when I am trying to make a zip file by using publish and then making the zip of all DLL under bin\Release\netcoreapp1.0. and trying to run.

Then it is giving an error:

{
  "errorType": "LambdaException",
  "errorMessage": "An error occurred while attempting to execute your code."
}

In configuration Handler name is correct.

What can be the issue?

Upvotes: 1

Views: 894

Answers (1)

Stig Woxholt
Stig Woxholt

Reputation: 1

Have you tried packing the zip using the dotnet cli command?

Try this in your project folder: dotnet lambda package -o .\lambda.zip

It should create a lambda.zip file which you can try to upload.

Upvotes: 0

Related Questions