I’m getting an error on lambda.
################################################################
START RequestId: 275de76b-49e5-4474-af4b-f190efd53e04 Version: $LATEST
2020-06-09T17:25:40.105Z 275de76b-49e5-4474-af4b-f190efd53e04 INFO {
“version”: “1.0”,
“session”: {
“new”: true,
“sessionId”: “amzn1.echo-api.session.123456789012”,
“application”: {
“applicationId”: “amzn1.ask.skill.987654321”
},
“user”: {
“userId”: “amzn1.ask.account.testUser”
},
“attributes”: {}
},
“context”: {
“AudioPlayer”: {
“playerActivity”: “IDLE”
},
“System”: {
“application”: {
“applicationId”: “amzn1.ask.skill.987654321”
},
“user”: {
“userId”: “amzn1.ask.account.testUser”
},
“device”: {
“supportedInterfaces”: {
“AudioPlayer”: {}
}
}
}
},
“request”: {
“type”: “LaunchRequest”,
“requestId”: “amzn1.echo-api.request.1234”,
“timestamp”: “2016-10-27T18:21:44Z”,
“locale”: “en-US”
}
}
Error -----------------------------------------------------------------
Code:
ERR_NO_MATCHING_PLATFORM
Message:
Can’t handle request object.
Stack:
Error: Can’t handle request object.
at App.handle (/var/task/node_modules/jovo-core/dist/src/core/BaseApp.js:176:23)
at async App.handle (/var/task/node_modules/jovo-framework/dist/src/App.js:265:9)
at async Runtime.exports.handler (/var/task/index.js:26:5)
Module:
jovo-core
Hint:
Please add an integration that handles that type of request.
WARN: Jovo instance is not available. ON_ERROR doesn’t work here
2020-06-09T17:25:40.224Z 275de76b-49e5-4474-af4b-f190efd53e04 ERROR Invoke Error {“errorType”:“Error”,“errorMessage”:“Can’t handle request object.”,“code”:“ERR_NO_MATCHING_PLATFORM”,“module”:“jovo-core”,“hint”:“Please add an integration that handles that type of request.”,“stack”:[“Error: Can’t handle request object.”," at App.handle (/var/task/node_modules/jovo-core/dist/src/core/BaseApp.js:176:23)"," at async App.handle (/var/task/node_modules/jovo-framework/dist/src/App.js:265:9)"," at async Runtime.exports.handler (/var/task/index.js:26:5)"]}
END RequestId: 275de76b-49e5-4474-af4b-f190efd53e04
REPORT RequestId: 275de76b-49e5-4474-af4b-f190efd53e04 Duration: 258.17 ms Billed Duration: 300 ms Memory Size: 128 MB Max Memory Used: 96 MB Init Duration: 648.80 ms
#############################################################################
I’m getting this error after I upload my code on to lambda. Not sure why. I’ve tried a lot of things and I can’t seem to figure the problem out. Here’s the first few lines of my app.js:
const { App } = require(‘jovo-framework’);
const { JovoDebugger } = require(‘jovo-plugin-debugger’);
// const { FileDb } = require(‘jovo-db-filedb’);
const { Dialogflow, FacebookMessenger} = require(‘jovo-platform-dialogflow’);
const request = require(‘request-promise-native’);
// Get Google API for local testing
// const config = require(’…/config/keys’);
// const googleAPIkey = config.googleAPIkey;
// Get Google API Key for lambda
const googleAPIkey = process.env.googleAPIkey;
const app = new App();
app.use(
new JovoDebugger(),
//new FileDb(),
new Dialogflow().use(new FacebookMessenger())
);
// ------------------------------------------------------------------
// APP LOGIC
// ------------------------------------------------------------------
app.setHandler({
LAUNCH() {
let speech = “Welcome to Plaza!” +
" Support your local businesses in this time of need." +
" What’s your name?";
// console.log(chalk.blue(this.$dialogflowAgent.setResponseObject(test)));
this.followUpState('Information1State').ask(speech);
},
#########################################################
Any ideas?
Thanks!