Comments (41)
Hi - I was getting this error but it was because the name that I gave my intent in the skills builder did not match the js example for lambda. Namely, GetNewFactIntent
-- you must name the intent in the skills builder to be exactly the same (or alternatively, change this line in the lambda code example [currently, it's line 112]). Just figured I would add this since I was getting the same error in case it helps someone else.
from skill-sample-nodejs-fact.
In Lambda, check timeout value (basic setting >> timeout).
When I used default 3 secs, I got the same error. When I changed to 30 secs, it works.
Maybe it need more time to load the 1st time or 3 secs is just not enough.
from skill-sample-nodejs-fact.
I'm working through this tutorial tonight and can confirm that I'm getting the same error on the testing section.
from skill-sample-nodejs-fact.
Looks like tonight (06/22/2017) the N. Virginia center is experiencing issues with Lambda services:
https://status.aws.amazon.com/
Error message: 6:26 PM PDT We are investigating increased error rates for Lambda integrations and Custom Authorizers in the US-EAST-1 Region.
I just tried a separate tutorial (https://github.com/alexa/skill-sample-nodejs-howto) and selected the Ireland service center and passed the testing phase.
from skill-sample-nodejs-fact.
Thanks, should of checked there.
from skill-sample-nodejs-fact.
I am still facing the same issue in both N. Virginia and Ireland
from skill-sample-nodejs-fact.
Are you sure? I just checked status.aws.amazon.com and it looked all right.
from skill-sample-nodejs-fact.
Yup - I am sure. This is the error I am getting as per my cloudwatch logs:
2017-06-25T17:21:41.029Z c0c17851-59ca-11e7-b02a-b1b3a688e889
{
"errorMessage": "No 'Unhandled' function defined for event: Unhandled",
"errorType": "Error",
"stackTrace": [
"AlexaRequestEmitter.EmitEvent (/var/task/node_modules/alexa-sdk/lib/alexa.js:194:15)",
"AlexaRequestEmitter.ValidateRequest (/var/task/node_modules/alexa-sdk/lib/alexa.js:160:23)",
"HandleLambdaEvent.i18n.use.init (/var/task/node_modules/alexa-sdk/lib/alexa.js:113:29)",
"/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:190:9",
"done (/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:281:21)",
"/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:302:7",
"I18n.loadResources (/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:238:7)",
"I18n.changeLanguage (/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:301:10)",
"load (/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:186:14)",
"I18n.init (/var/task/node_modules/alexa-sdk/node_modules/i18next/dist/commonjs/i18next.js:195:7)"
]
}
from skill-sample-nodejs-fact.
I tried adding sessions handler as suggested in this:
amazon-archives/skill-sample-nodejs-calendar-reader#6
var newSessionHandlers = {
'LaunchRequest': function () {
this.handler.state = states.SEARCHMODE;
this.emit(':ask', skillName + " " + welcomeMessage, welcomeMessage);
},
'Unhandled': function () {
this.emit(':ask', HelpMessage, HelpMessage);
}
};
But still getting the same error
from skill-sample-nodejs-fact.
In the developer console go to the testing page for your skill and follow the instructions to test it. When you click ask [your skill name] does it return The remote endpoint could not be called, or the response it returned was invalid.
?
from skill-sample-nodejs-fact.
Yes - that is what is returns. In the developer console I am going to the testing page for the skill and then following the instructions.
I am getting the error - The remote endpoint could not be called, or the response it returned was invalid.
from skill-sample-nodejs-fact.
Same for me as well...
from skill-sample-nodejs-fact.
I am getting the same error.
from skill-sample-nodejs-fact.
Check what the skill is returning. If something is off in the response, then Alexa won't like it. Test the skills response in the AWS console.
from skill-sample-nodejs-fact.
I'm having this issue too. The solutionby @lawardy didn't solve my issue.
I am getting this issue from following both the fact and trivia skill tutorials. I have followed these before and having workings skills for both of these. My recent skills, following the same tutorials, all show this error. I have also tried to change the default endpoint of my broken skills to one of the skills that does work's lambda but it still shows the same issue. Which is why I don't think the issue is with the aws lambda part.
from skill-sample-nodejs-fact.
I've given up on using this and have switched entirely to flask-ask. This is far the best (in my opinion) sdk.
from skill-sample-nodejs-fact.
That worked for me!
Thanks so much!
from skill-sample-nodejs-fact.
@ConorMatthews How did you fix this??
from skill-sample-nodejs-fact.
@nstajduhar I followed @melrom instructions because it was calling an intent list that was not there because when setting the intents up i did not follow the instructions advice to call it GetNewFactIntent
, but called it otherwise. In the code it tries to call GetNewFactIntent
however it was not named that so you need to go into your code and change GetNewFactIntent
to whatever you called your intent list.
Hope this helps
from skill-sample-nodejs-fact.
@ConorMatthews where is this GetNewFactIntent
? I have no clue where to find that
from skill-sample-nodejs-fact.
@nstajduhar if you go to the example code where you changed the facts, on line 112 there should be the code, just change that.
Alternatively change your intent lists name to GetNewFactIntent
from skill-sample-nodejs-fact.
@ConorMatthews facts? I didn't come across that? Can you link a screenshot
from skill-sample-nodejs-fact.
Are you using https://developer.amazon.com/alexa-skills-kit/tutorials/fact-skill-1 as a starting point?
If not try it
from skill-sample-nodejs-fact.
That is a tutorial made by amazon
from skill-sample-nodejs-fact.
I have done all this but I don't see anywhere with a line number 112
from skill-sample-nodejs-fact.
@ConorMatthews nvm I got it now thanks!
from skill-sample-nodejs-fact.
@ConorMatthews How did it get fixed. Can you help me with this?
from skill-sample-nodejs-fact.
can anyone help me to fix the same problem for mt code...????
i have planned to make an automation so when it call form skill it gives the same error....
from skill-sample-nodejs-fact.
@soundarsurya I got it fixed by making my api response faster.
from skill-sample-nodejs-fact.
@naik899 could you explain in detail please...??
from skill-sample-nodejs-fact.
The remote endpoint could not be called, or the response it returned was invalid.
from skill-sample-nodejs-fact.
@soundarsurya @Juresse This error can be for couple of reasons as per my experience with Alexa skill set
- Once it was because the name that I gave my intent in the skills builder did not match the js example for lambda
- In Lambda, check timeout value (basic setting -> timeout). When I changed to 10 secs, it works.
from skill-sample-nodejs-fact.
@naik899 thanks for the response.
i have changed the execution time but i am getting the same?
have any other way to fix??
?
from skill-sample-nodejs-fact.
Guys, you should increase time and use HTTPS instead of HTTP. Hope it helps someone.
from skill-sample-nodejs-fact.
from skill-sample-nodejs-fact.
@soundarsurya Are you still experiencing a problem? I took a look at the history and I'm not sure what you're experiencing. I have not seen this (unmodified) sample hit the timeout threshold, so I would lean towards something else. However, since this sample has been updated, you have a few options - start over with the latest code which uses the new version of the SDK, use the Serverless Application Repository in AWS Lambda to create the skill backend code, or continue troubleshooting this. LMK what you prefer.
from skill-sample-nodejs-fact.
from skill-sample-nodejs-fact.
Is the endpoint a Lambda function or an SSL endpoint? If it's a Lambda endpoint, I would check to confirm the full arn is present and correct in the skill endpoint configuration (with no extra spaces), the Lambda function has the Alexa Skill Kit trigger and the Skill ID verification in the trigger is either not enabled, or is set to the correct skill id.
More info on endpoint: https://developer.amazon.com/docs/devconsole/build-your-skill.html#custom-model
More Info on Lambda hosting: https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-an-aws-lambda-function.html
from skill-sample-nodejs-fact.
@soundarsurya are you still experiencing this? If so, can you add some detail about your configuration? http endpoint or Lambda? if http, what kind of certificate are you using? Do your server logs show any sort of activity? If Lambda, does Alexa have permission to invoke your Lambda function? Are there any entries at all in the CloudWatch log?
from skill-sample-nodejs-fact.
please follow the youtube video here to get over the lambda connection issue: https://www.youtube.com/watch?v=QkbXjknPoXc
from skill-sample-nodejs-fact.
closing due to age
from skill-sample-nodejs-fact.
Related Issues (20)
- How do I port Amazon examples
- Intent call not working, Alexa close session after LaunchRequest. HOT 4
- Missing steps for "space fact" tutorial HOT 1
- Sample code in tutorial and Lambda code from template are not same HOT 5
- I would like to modify the skill to have facts for an specific planet. HOT 3
- Link broken HOT 1
- Voice model and sample code not working for Hindi HOT 3
- 'Key' are coming in response
- Need to read firebase(firestore data) HOT 1
- Runtime HOT 1
- Proposal: add external API usage with async/await to example HOT 1
- what is .t() in this line of code randomFact = requestAttributes.t('FACTS');? HOT 1
- Broken links in the docs HOT 2
- AMAZON.RepeatIntent HOT 2
- Template specifies deprecated Runtime 10.x HOT 4
- doesn't create a skill HOT 3
- de-DE Model incorrect HOT 4
- Termux HOT 2
- help with arn
- Broken link : 404 on optional link for securing lambda function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skill-sample-nodejs-fact.