【发布时间】:2018-08-15 07:06:49
【问题描述】:
我是 openwhisk 的新手,正在尝试创建 wsk 操作,wsk action create hello hello.js
收到错误消息,
Unable to create action 'hello': The supplied authentication is invalid
可能是什么原因?我的 wsk 属性是,
client cert
Client key
whisk auth <AUTH_KEY>
whisk API host openwhisk.ng.bluemix.net
whisk API version v1
whisk namespace _
whisk CLI version 2018-07-12T05:26:45.339+0000
whisk API build 2018-08-09T17:17:27Z
whisk API build number whisk-build-9911
【问题讨论】:
-
您按照哪些说明设置 CLI?
-
您似乎在使用 IBM Cloud Functions (OpenWhisk)。你知道console.bluemix.net/docs/openwhisk/…吗?您是否已登录 IBM Cloud?
-
如果您在本地计算机上部署 OpenWhisk,则 API 主机不应为
openwhisk.ng.bluemix.net。您想在哪里使用 OpenWhisk? -
@JamesThomas 是的,问题应该出在 API 主机上,因为我手动更改了几次。我在 gcloud 上再次部署了 OpenWhisk,现在它运行良好,
whisk API host 35.227.94.111是我的新 API 主机。感谢您的关注。干杯!!
标签: authentication action openwhisk