joanaz / MirrorMirrorOnTheWallSkill

Alexa skill for controlling a MagicMirror²
MIT License
44 stars 35 forks source link

Only files or files and folders... #1

Closed Snille closed 7 years ago

Snille commented 7 years ago

Hi! When uploading the zip to Lambda, should I really only select the files in the src folder, not the directories as well? I'm getting "cannot find module "alexa-sdk" error in the lambda execution...

However, if I do include all the directories aswell (after doing npm install and all the modules has been installed correctly) I get: "errorMessage": "RequestId: 8e11b7e3-e7a3-11e6-b996-11b599d27c53 Process exited before completing request"

Log output: START RequestId: 8e11b7e3-e7a3-11e6-b996-11b599d27c53 Version: $LATEST 2017-01-31T10:53:53.871Z 8e11b7e3-e7a3-11e6-b996-11b599d27c53 TypeError: Cannot read property 'locale' of undefined at AlexaRequestEmitter.HandleLambdaEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:102:38) at AlexaRequestEmitter.Object.defineProperty.value (/var/task/node_modules/alexa-sdk/lib/alexa.js:91:31) at exports.handler (/var/task/index.js:33:11) END RequestId: 8e11b7e3-e7a3-11e6-b996-11b599d27c53 REPORT RequestId: 8e11b7e3-e7a3-11e6-b996-11b599d27c53 Duration: 121.12 ms Billed Duration: 200 ms Memory Size: 128 MB Max Memory Used: 23 MB
RequestId: 8e11b7e3-e7a3-11e6-b996-11b599d27c53 Process exited before completing request

So, maybe I'm doing it wrong. :)

Ps: I actually had it working (almost) yesterday. I could show and hide modules and got vocal responses from the skill, But I did not get any messages on the mirror. So, I decided to update today... :)

Thank you.

joanaz commented 7 years ago

files and folders. just updated readme.