Severless framework : invoke local is giving error - aws lamda

Multi tool use
Multi tool use












3














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:Demoserverlesshandler
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.










share|improve this question






















  • is it because the system is old or the os is old?
    – murtuza hussain
    Dec 27 at 14:30












  • I have a same problem.
    – Haider
    Dec 27 at 14:45










  • i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
    – Ali Asgher Badshah
    Dec 27 at 14:52
















3














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:Demoserverlesshandler
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.










share|improve this question






















  • is it because the system is old or the os is old?
    – murtuza hussain
    Dec 27 at 14:30












  • I have a same problem.
    – Haider
    Dec 27 at 14:45










  • i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
    – Ali Asgher Badshah
    Dec 27 at 14:52














3












3








3







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:Demoserverlesshandler
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.










share|improve this question













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:Demoserverlesshandler
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.







javascript node.js aws-lambda aws-cli serverless






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 27 at 13:25









murtuza hussain

17813




17813












  • is it because the system is old or the os is old?
    – murtuza hussain
    Dec 27 at 14:30












  • I have a same problem.
    – Haider
    Dec 27 at 14:45










  • i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
    – Ali Asgher Badshah
    Dec 27 at 14:52


















  • is it because the system is old or the os is old?
    – murtuza hussain
    Dec 27 at 14:30












  • I have a same problem.
    – Haider
    Dec 27 at 14:45










  • i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
    – Ali Asgher Badshah
    Dec 27 at 14:52
















is it because the system is old or the os is old?
– murtuza hussain
Dec 27 at 14:30






is it because the system is old or the os is old?
– murtuza hussain
Dec 27 at 14:30














I have a same problem.
– Haider
Dec 27 at 14:45




I have a same problem.
– Haider
Dec 27 at 14:45












i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
– Ali Asgher Badshah
Dec 27 at 14:52




i did this same think on ubuntu and it work but when i try it on my windows machine it does not work at all
– Ali Asgher Badshah
Dec 27 at 14:52

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53945845%2fseverless-framework-invoke-local-is-giving-error-aws-lamda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53945845%2fseverless-framework-invoke-local-is-giving-error-aws-lamda%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







BNpT jBkPlp9cH6B4f3,wNrdMWIqUaMVMQPSoROTEvpvmcVkJslLOcQGFVugYWWs4POAwiD9JXd,Rvl7YuDE5,WF
aB4WT1q3T,9GzhhL,cG,lHwqZkcjbY

Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas