Open bimalkumarh opened 6 years ago
Why do you want to create a new apiai with empty access token?
I have set the client access token in app.json but still I am getting this exception
i need to fix this problem please guys
Error: 'clientAccessToken' cannot be empty.
at createApplicationNew (C:\Users\Mutaz Maiitah\Desktop\discord-ai-bot\node_modules\apiai\module\apiai.js:73:15)
at createApplication (C:\Users\Mutaz Maiitah\Desktop\discord-ai-bot\node_modules\apiai\module\apiai.js:96:37)
at Object.
I am getting the below error when running the application
node_modules\apiai\module\apiai.js:73 throw new Error('\'clientAccessToken\' cannot be empty.');
I have commented the below code block in apiai.js and it is now working fine.
/ if (!clientAccessToken) { throw new Error('\'clientAccessToken\' cannot be empty.'); }?/
Any workaround for this?