VidyasagarMSC / openwhisk-nodejs-webui

A Bluemix hosted Openwhisk NodeJS Query WebUI. Go Serverless!!
2 stars 1 forks source link

OpenWhiskError: Unknown Error From API: self signed cer tificate #1

Open jwende opened 6 years ago

jwende commented 6 years ago

server starting on http://localhost:6003 failed to list actions { OpenWhiskError: Unknown Error From API: self signed cer tificate at Client.handle_errors (D:\openwhisk-nodejs-webui\node_modules\openwhisk\li b\client.js:141:11) at rp.catch.err (D:\openwhisk-nodejs-webui\node_modules\openwhisk\lib\client .js:102:38) at process._tickCallback (internal/process/next_tick.js:109:7) name: 'OpenWhiskError', message: 'Unknown Error From API: self signed certificate', error: undefined, statusCode: undefined }

AdjWang commented 2 years ago

Setting the ignore_certs to true may work. Details see https://npm.io/package/openwhisk#:~:text=ignore_certs

// OpenWhisk Javascript SDK settings
var openwhisk = require('openwhisk');
var options = {
  apihost: process.env.OpenWhisk_HOST,
  api_key: process.env.OpenWhisk_AuthKey,
  ignore_certs: true,  // -i, --insecure             bypass certificate checking
};
var ow = openwhisk(options);