次のコードをlambdaにアップロードしています。エラーメッセージ "errorMessage": "RequestId:bdfa695d-e8b8-11e6-952a-21bb5e95cff6私が完全に機能するスキルからこのコードを修正しましたが、リクエストが完了する前にプロセスが終了しました。 コードはユーザーに(カード付きの)こんにちはを伝えるだけで、ユーザーから質問があったときに質問することができます。ここに私のコードです:あらゆる種類、またはAWSでの作業のためにも、任意のヒントの `AWS Lambdaが「要求を完了する前にプロセスが終了しました」
var APP_ID=undefined;
var Alexa = require('./AlexaSkill');
var Sample = function() {
AlexaSkill.call(this, APP_ID);
};
var handlers = {
'LaunchRequest': function() {
this.emit(':ask', welcomeMessage, GetReprompt());
},
'Unhandled': function() {
this.emit(':ask', welcomeMessage, GetReprompt());
},
'AMAZON.HelpIntent': function() {
this.emit(':ask', HelpMessage, HelpMessage);
},
'AMAZON.StopIntent': function() {
this.shouldEndSession = true;
this.emit(':tell', stopSkillMessage, stopSkillMessage);
},
'AMAZON.CancelIntent': function() {
this.shouldEndSession = true;
this.emit(':tell', stopSkillMessage, stopSkillMessage);
},
'SaySomethingIntent': function() {
var speechOutput= "Hello";
var repromptOutput= "Say hello";
var cardTitle="Hello. This is the card title.";
var overviewMessage="This is a card.";
this.askWithCard(speechOutput, repromptOutput, howToPlayCardTitle, overviewMessage);
},
'AskIntent': function() {
var question="Hi there, what's your name?";
this.askWithCard(question);
}
}
exports.handler = function (event, context) {
var sample = new Sample();
sample.execute(event, context);
};
` ヘルプ、はるかに高く評価されるだろう。ありがとう。
あなたは、このラムダのためCloudWatchのログを見てみましょうことができますか?通常、エラーがあればそこに印刷されます。 – spg