I always get the error 'Application ID is not set' in my log files while I have set this ID like they say in this example:
const APP_ID = 'amzn1.ask.skill.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx';
How can I fix this problem?
Application IDs are alphanumeric strings passed by an OpenAccess SDK Client that identify the client application to an OpenAccess SDK service that has been configured to accept connections only from specific application IDs.
Problem is that this example is deprecated.
At the botton of your index.js
you will find this code:
exports.handler = (event, context) => {
const alexa = Alexa.handler(event, context);
alexa.APP_ID = APP_ID;
// To enable string internationalization (i18n) features, set a resources object.
alexa.resources = languageStrings;
alexa.registerHandlers(handlers);
alexa.execute();
};
And alexa.APP_ID = APP_ID;
is wrong. They changed it to alexa.appId
.
So if you change your line to:
alexa.appId = APP_ID;
You will not get this error message anymore. Here is the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With