Severless framework : invoke local is giving error - aws lamda

Viewed 636

I have installed aws-cli and serverless in my windows 7 machine from command npm install -g aws-cli serverless and also successfully configured aws and sls

aws configure
sls config credentials --provider aws --key <my-access-key> --secret <my-secret-key> --profile serverless-admin

Then I created new serverless project

sls create -t aws-nodejs

Everything worked well till here until when I tried to invoke hello function locally

sls invoke local -f hello
Error --------------------------------------------------
Exception encountered when loading E:\Demo\serverless\handler
    For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

enter image description here

I have tried setting environment variable set SLS_DEBUG=* but this does not seem to resolve the issue

I have tried other various solutions available on the net. But doesn't seem to resolve the issue

Thank you for any help.

0 Answers
Related