Wit-Facebook icon indicating copy to clipboard operation
Wit-Facebook copied to clipboard

Error: Could not find access token

Open neeraj87 opened this issue 8 years ago • 5 comments

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

neeraj87 avatar Jan 21 '17 11:01 neeraj87

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

tarokawada avatar Feb 09 '17 23:02 tarokawada

+1

timxor avatar Mar 15 '17 02:03 timxor

+1

willian-viana avatar May 06 '17 19:05 willian-viana

Any solution for this?

hunkim avatar May 06 '17 21:05 hunkim

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 ;)

Rolfjdra avatar Jul 19 '17 12:07 Rolfjdra