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

How to start? #1

Open
stewest opened this issue Sep 29, 2017 · 9 comments
Open

How to start? #1

stewest opened this issue Sep 29, 2017 · 9 comments

Comments

@stewest
Copy link

stewest commented Sep 29, 2017

Hi there

Love this! Trying it out. How do I start the node server? npm start nor nf start works.

@benrouba
Copy link

benrouba commented Oct 2, 2017

hi do this node index.js

@stewest
Copy link
Author

stewest commented Oct 2, 2017

Hi thanks so much for getting back to me. Really dig this idea.

I still get this error, even when I have added the api tokens etc in the env file.
Locally should I be using the test env or just env? Thanks again

/git/iot/web-speech-ai/node_modules/apiai/module/apiai.js:73
throw new Error(''clientAccessToken' cannot be empty.');
^

Error: 'clientAccessToken' cannot be empty.
at createApplicationNew (/Users/stewwest/git/iot/web-speech-ai/node_modules/apiai/module/apiai.js:73:15)
at createApplication (/Users/stewwest/git/iot/web-speech-ai/node_modules/apiai/module/apiai.js:96:37)
at Object. (/Users/stewwest/git/iot/web-speech-ai/index.js:21:31)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Function.Module.runMain (module.js:605:10)
at startup (bootstrap_node.js:158:16)

@dilshad372
Copy link

dilshad372 commented Oct 26, 2017

Set APIAI_TOKEN='xxxxxxxxxxxxxxxxxxx' in env_test, API Access token you will get from https://dialogflow.com/ when you click on setting for particular agent

@ask911
Copy link

ask911 commented Dec 14, 2017

even after setting the token im getting the same error mentioned above is there any reason for this

@nitinskumavat
Copy link

nitinskumavat commented Feb 3, 2018

create .env file
And first run this line in cmd
"npm install dotenv --save"
this helped me

@leslysandra
Copy link

also, I just hardcoded my token at index.js
when declaring const apiai (it is for testing for myself!)

@venky1993
Copy link

How to use NPM start ? it shows below error while deploying
npm ERR! Failed at the test@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@nehabhat345
Copy link

I set the token as const APIAI_TOKEN='APxxxxxxxxxxxxx';
But it's showing the error as below:-
Wrong response status code.
at IncomingMessage. (D:\Projects_NEHA\web-speech-ai-master\web-speech-ai-master\node_modules\apiai\module\json_api_request.js:59:25)
at IncomingMessage.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21) {
statusCode: 401,
responseBody: '{\n' +
' "status": {\n' +
' "code": 401,\n' +
' "errorType": "unauthorized",\n' +
' "errorDetails": "Invalid access token: APxxxxxxxxxxxxx Code: 401"\n' +
' }\n' +
'}',
name: 'ServerError',
message: 'Wrong response status code.'
}

@nehabhat345
Copy link

also, I just hardcoded my token at index.js
when declaring const apiai (it is for testing for myself!)

Did it work?

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

8 participants