mrahman4 / alexasamtemplate Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Having manually added the database all the information, there is no example story
on this page:
https://github.com/mrahman4/AlexaSamTemplate/blob/master/instructions/2-lambda-function.md
I think that the databases need to be created BEFORE the lambda file?
It seems like the lambda file tries to create them itself but this fails?
All the question marks are because I'm a new Alexa skill builder and am kind of wandering around in the dark trying to get this thing deployed.
These are my errors in the cloud formation stack
"Encountered unsupported property PrimaryKey" seems to be the smoking gun ??
2018-11-27 | Status | Type | Logical ID | Status Reason |
---|---|---|---|---|
14:11:56 UTC-0500 ROLLBACK_COMPLETE AWS::CloudFormation::Stack aws-serverless-repository-Alexa-Nodejs-Dynamic-Content Physical ID:arn:aws:cloudformation:us-east-1:938377593660:stack/aws-serverless-repository-Alexa-Nodejs-Dynamic-Content/462e8010-f278-11e8-b999-1297d6a5b478 14:11:54 UTC-0500 ROLLBACK_IN_PROGRESS AWS::CloudFormation::Stack aws-serverless-repository-Alexa-Nodejs-Dynamic-Content The following resource(s) failed to create: [StoriesTable, StoryPartsTable]. . Rollback requested by user. Physical ID:arn:aws:cloudformation:us-east-1:938377593660:stack/aws-serverless-repository-Alexa-Nodejs-Dynamic-Content/462e8010-f278-11e8-b999-1297d6a5b478 14:11:53 UTC-0500 CREATE_FAILED AWS::DynamoDB::Table StoriesTable Encountered unsupported property PrimaryKey 14:11:52 UTC-0500 CREATE_FAILED AWS::DynamoDB::Table StoryPartsTable Encountered unsupported property PrimaryKey | 14:11:56 UTC-0500 | ROLLBACK_COMPLETE | AWS::CloudFormation::Stack | |
14:11:56 UTC-0500 | ROLLBACK_COMPLETE | AWS::CloudFormation::Stack | aws-serverless-repository-Alexa-Nodejs-Dynamic-Content | |
Physical ID:arn:aws:cloudformation:us-east-1:938377593660:stack/aws-serverless-repository-Alexa-Nodejs-Dynamic-Content/462e8010-f278-11e8-b999-1297d6a5b478 | ||||
14:11:54 UTC-0500 | ROLLBACK_IN_PROGRESS | AWS::CloudFormation::Stack | aws-serverless-repository-Alexa-Nodejs-Dynamic-Content | |
Physical ID:arn:aws:cloudformation:us-east-1:938377593660:stack/aws-serverless-repository-Alexa-Nodejs-Dynamic-Content/462e8010-f278-11e8-b999-1297d6a5b478 | ||||
14:11:53 UTC-0500 | CREATE_FAILED | AWS::DynamoDB::Table | StoriesTable | |
14:11:52 UTC-0500 | CREATE_FAILED | AWS::DynamoDB::Table | StoryPartsTable |
I put in the Endpoint (arn) and rebuilt the voice command side, but no joy when testing. Amazon finds LaunchRequest input but then something goes wrong and a generic error message comes up "There was a problem with the requested skill's response."
"request": {
"type": "LaunchRequest",
"requestId": "amzn1.echo-api.request.810dbef4-731d-4412-8e95-b33ef3900c6a",
"timestamp": "2018-11-29T03:21:57Z",
"locale": "en-US",
"shouldLinkResultBeReturned": false
}
JSON output
null
Can you confirm that the voice command section builds with the lambda and works correctly?
Thanks much,
Paul
On this page
https://github.com/mrahman4/AlexaSamTemplate/blob/master/instructions/2-lambda-function.md
Shouldn't this repository search really be for:
alexa-nodejs-dynamic-content ??
Response:
{
"errorMessage": "Cannot find module 'alexa-sdk'",
"errorType": "Error",
"stackTrace": [
"Module._compile (module.js:570:32)",
"Object.Module._extensions..js (module.js:579:10)",
"Module.load (module.js:487:32)",
"tryModuleLoad (module.js:446:12)",
"Function.Module._load (module.js:438:3)"
]
}
in instructions/2-lambda-function.md
" Enter alexa to search for the application repository named alexa-skills-kit-nodejs-factskill. Enter the full name into the search box if you need to narrow the search results."
Also you might think about deleting the Database section since the template now sets up the databases.
I did confirm that the databases now get configured correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.