How to fix Warning: application identifier not set?

I always get the error "Application identifier not set" in my log files while I set this identifier, as this example says

const APP_ID = 'amzn1.ask.skill.xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'; 

How can I fix this problem?

+6
source share
1 answer

The problem is that this example is deprecated.

In 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; wrong. They changed it to alexa.appId .

So, if you change your line to:

 alexa.appId = APP_ID; 

You will no longer receive this error message. Here is the documentation.

+19
source

Source: https://habr.com/ru/post/1014904/


All Articles