Node.js Alexa Task Issue
I\'m currently coding a Node.js Alexa Task via AWS Lambda, and I have been trying to code a function that receives informat
Update to the accepted answer: When this error occurs, it means your zip file is not in the valid form which AWS requires.
If you double click on zip you will find your folder inside that your code file,but lambda wants that when you double click on zip it shoud show direct code files.
To achieve this:
open terminal
cd your-lambda-folder
zip -r index.zip *
Then, upload index.zip
to AWS Lambda.
In my case I had to replace
exports.handler = function eventHandler (event, context) {
with
exports.handler = function (event, context, callback) {
This is probably a permissions issue with files inside your deployment zip.
Try chmod 777
your files before packaging them in a zip file.