IBM / watson-discovery-ui

Develop a fully featured Node.js web app built on the Watson Discovery Service
https://developer.ibm.com/patterns/create-an-app-to-perform-intelligent-searches-on-data/
Apache License 2.0
66 stars 128 forks source link

Error trying to run locally. Error: Missing required parameters: apikey #180

Closed maclean-stu closed 4 years ago

maclean-stu commented 4 years ago

sjm@Stuarts-MBP-2 watson-discovery-ui-master 2 % npm start

watson-discovery-ui@1.0.0 start /Users/sjm/Downloads/watson-discovery-ui-master 2 node --max_old_space_size=512 app.js

/Users/sjm/Downloads/watson-discovery-ui-master 2/node_modules/ibm-cloud-sdk-core/auth/utils/helpers.js:67 throw missingParamsError; ^

Error: Missing required parameters: apikey at Object.getMissingParams (/Users/sjm/Downloads/watson-discovery-ui-master 2/node_modules/ibm-cloud-sdk-core/lib/helper.js:102:11)

maclean-stu commented 4 years ago

Error was that my .ENV file had DISCOVERY_IAM_APIKEY=.... instead of DISCOVERY_APIKEY=.... Problem solved.