dialogflow / dialogflow-nodejs-client

Node.js SDK for Dialogflow
Apache License 2.0
659 stars 287 forks source link

clientAccessToken cannot be empty #104

Open bimalkumarh opened 6 years ago

bimalkumarh commented 6 years ago

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?

nvtuan305 commented 6 years ago

Why do you want to create a new apiai with empty access token?

pranavvardia commented 6 years ago

I have set the client access token in app.json but still I am getting this exception

jordanvape commented 5 years ago

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. (C:\Users\Mutaz Maiitah\Desktop\discord-ai-bot\main.js:1:94) at Module._compile (internal/modules/cjs/loader.js:701:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10) at Module.load (internal/modules/cjs/loader.js:600:32) at tryModuleLoad (internal/modules/cjs/loader.js:539:12) at Function.Module._load (internal/modules/cjs/loader.js:531:3) at Function.Module.runMain (internal/modules/cjs/loader.js:754:12) at startup (internal/bootstrap/node.js:283:19) PS C:\Users\Mutaz Maiitah\Desktop\discord-ai-bot>