Closed maclean-stu closed 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)
Error was that my .ENV file had DISCOVERY_IAM_APIKEY=.... instead of DISCOVERY_APIKEY=.... Problem solved.
sjm@Stuarts-MBP-2 watson-discovery-ui-master 2 % npm start
/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)