Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clientAccessToken cannot be empty #104

Open
bimalkumarh opened this issue Mar 1, 2018 · 3 comments
Open

clientAccessToken cannot be empty #104

bimalkumarh opened this issue Mar 1, 2018 · 3 comments

Comments

@bimalkumarh
Copy link

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
Copy link

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

@pranavvardia
Copy link

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

@jordanvape
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants