Code Monkey home page Code Monkey logo

alexasamtemplate's People

Contributors

jimshalo10 avatar mrahman4 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

faikey

alexasamtemplate's Issues

Lambda now builds correctly but finally app does not respond

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

Database Creation Intruction Bug ??

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

Instructions still point to the wrong Template

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.

Lambda file still fails to respond correctly "Cannot find module 'alexa-sdk'"

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)"
]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.