Open tlovett1 opened 7 years ago
See if HEAD resolves this? I believe it was fixed in https://github.com/alexa-js/alexa-app/pull/184.
Doesn't seem like that fixed it
It is still not fixed
Looking forward to a PR from someone with a spec + fix.
yes this is the same issue I was having in #314 . If Alexa gets an empty slot then the slot value
ends up being undefined and so you get and error where you expect the defaultValue
of false
(in this case). Should be fixed.
{ "errorMessage": "Cannot read property 'slots' of undefined", "errorType": "TypeError", "stackTrace": [ "Object.SayHello (/var/task/index.js:38:47)", "emitNone (events.js:106:13)", "AlexaRequestEmitter.emit (events.js:208:7)", "Object.LaunchRequest (/var/task/index.js:19:14)", "emitNone (events.js:106:13)", "AlexaRequestEmitter.emit (events.js:208:7)", "AlexaRequestEmitter.EmitEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:216:10)", "AlexaRequestEmitter.ValidateRequest (/var/task/node_modules/alexa-sdk/lib/alexa.js:181:23)", "AlexaRequestEmitter.HandleLambdaEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:126:25)", "AlexaRequestEmitter.value (/var/task/node_modules/alexa-sdk/lib/alexa.js:100:31)" ] }
I'm also getting error like can anyone help me?
"request": { "type": "IntentRequest", "requestId": "amzn1.echo-api.request.5292afe2-03d8-4cc5-959f-54715d91322e", "timestamp": "2018-07-18T11:55:26Z", "locale": "en-US", "intent": { "name": "HelloWorldIntent", "confirmationStatus": "NONE", "slots": { "number": { "name": "number", "confirmationStatus": "NONE"
why i'm not getting value here?
I'm getting this error when the slot is empty:
My code is really simple:
Why is this an error? Shouldn't it just return false to
zipcode
?