【问题标题】:Unable to create action 'hello': The supplied authentication is invalid无法创建操作“你好”:提供的身份验证无效
【发布时间】: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


【解决方案1】:

在显示的配置中,API 主机显示为openwhisk.ng.bluemix.net。如果您在本地部署 OpenWhisk,这应该是本地主机的 IP 地址。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-04-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-11
    • 1970-01-01
    相关资源
    最近更新 更多