我正在尝试将node-red和openwhisk结合使用,这样我就可以从node-red调用openwhisk操作。为此,我使用node-red-node-openwhisk (https://www.npmjs.com/package/node-red-node-openwhisk)。我在本地和流浪者一起使用bluemix之外的openwhisk。我正在尝试根据这个教程工作:https://github.com/kpavel/openwhisk-light,但这似乎是不可能的,因为我很好,直到这个命令
wsk action --apihost http://localhost:3000 invoke owl-test -r -p mykey myval我得到了这个:
{
"error": {
"code": 4767018,
"error": "The supplied authentication is invalid"
},
"message": "GET https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/actions/owl-test Returned HTTP 401 (Unauthorized) --> \"The supplied authentication is invalid\"",
"name": "OpenWhiskError",
"statusCode": 401
}此外,我不能将openwhisk节点设置为在我的节点红色环境中工作,因为无论我使用的是什么apihost,我都会收到错误。有什么建议吗?
发布于 2018-01-09 18:13:54
可能存在或者已经存在通过CLI参数设置API主机的错误。在运行wsk action命令之前,可能还需要运行以下命令:
wsk property set --apihost http://localhost:3000https://github.com/apache/incubator-openwhisk-cli/issues/131
https://stackoverflow.com/questions/47021033
复制相似问题