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

Error: Could not find access token #16

Open
neeraj87 opened this issue Jan 21, 2017 · 5 comments
Open

Error: Could not find access token #16

neeraj87 opened this issue Jan 21, 2017 · 5 comments

Comments

@neeraj87
Copy link

When I run the app it gives the "could not find access token error"

Error: Could not find access token, learn more at https://wit.ai/docs
    at validate (/Volumes/Macintosh HD 2/GitHub Cloned Repos/node-wit.ai/node_modules/node-wit/lib/wit.js:210:11)
    at new Wit (/Volumes/Macintosh HD 2/GitHub Cloned Repos/node-wit.ai/node_modules/node-wit/lib/wit.js:24:45)
    at Object.getWit (/Volumes/Macintosh HD 2/GitHub Cloned Repos/node-wit.ai/bot.js:82:10)
    at Object.<anonymous> (/Volumes/Macintosh HD 2/GitHub Cloned Repos/node-wit.ai/app.js:13:17)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:148:18)

As far as I know my access token is there on the const.js file

@tarokawada
Copy link

Same issue is happening to me but i saved mine in config variable. Have you found a way to resolve this?

@timxor
Copy link

timxor commented Mar 15, 2017

+1

1 similar comment
@willian-viana
Copy link

+1

@hunkim
Copy link
Owner

hunkim commented May 6, 2017

Any solution for this?

@Rolfjdra
Copy link

I never had this issue until now. I solved it by changing:
"return new Wit(Config.WIT_TOKEN, actions);"
to
"return new Wit({ accessToken: Config.WIT_TOKEN, actions: actions });"

You can give that a try ;)

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

6 participants