Openwhisk Setuptools Geetting 405 方法不允许

问题描述

我正在尝试使用 docker-compose 运行 Openswhisk 示例并面临以下错误

$> ./wskdeploy --namespace _ -m manifest.yml -v

Info: deploy using deployment file []...
Info: CLI Flags:     > ApiHost: []     > Auth: []     > Namespace: [_]     > ApiVersion: []     > CfgFile: [/Users/user1/.wskprops]     > CliVersion: [1.2.0]     > CliGitCommit: [03df1126c3b5205d642738479a08bb7cd66a03b3]     > CliBuildDate: [2021-03-24T22:47:28Z]     > ProjectPath: [.]     > DeploymentPath: []     > ManifestPath: [manifest.yml]     > Preview: [false]     > Strict: [false]     > Key: []     > Cert: []     > Managed: [false]     > ProjectName: []     > ApigwAccesstoken: []     > Verbose: [true]     > Trace: [false]     > Sync: [false]     > Report: [false]     > Param: [[]]     > ParamFile: []
Info: The API host is [http://localhost],from .wskprops.
Info: The auth key is set,from .wskprops.
Info: The namespace is [_],from command line.
Info: Unmarshal OpenWhisk runtimes from local values.
Warning: The mandatory key [package version] should be set. Using default value [0.0.1]...
Warning: The value for key [package version] is not saved in the current version of wskdeploy.
Warning: The mandatory key [package license] should be set. Using default value [unlicensed]...
Warning: The value for key [package version] is not saved in the current version of wskdeploy.
Info: Package name default is reserved,all OpenWhisk entities under default package are deplyed/undeployed directly under your namespace.
Info: deploying action [helloJS] ...
REQUEST:
[PUT]   http://localhost/api/v1/namespaces/_/actions/helloJS?overwrite=true
Req Headers
{ "Authorization": [
   "Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
 ],"Content-Type": [
   "application/json"
 ],"User-Agent": [
   "OpenWhisk-Go-Client darwin amd64"
 ]
}
Req Body
{"name":"helloJS","exec":{"kind":"nodejs:10","code":"function main(args) {\n    const name = args && args.name || \"stranger\";\n    return { greeting: `Hello ${name}!` };\n}\n"},"publish":false}
   
RESPONSE:Got response with code 405
Resp Headers
{
 "Date": [
   "Fri,23 Jul 2021 20:40:19 GMT"
 ],"Server": [
   "openresty"
 ]

}

Response body size is 154 bytes

Response body received:

<html>
<body>
<center><h1>405 Not Allowed</h1></center>
<hr><center>openresty</center>
</body>
</html>

Info: Error creating action with error message: The connection Failed,or timed out. (HTTP status code 405) and error code: 149.
Error: Deployment did not complete sucessfully. Run `wskdeploy undeploy` to remove partially deployed assets.
Error: servicedeployer.go [1804]: [ERROR_WHISK_CLIENT_ERROR]: Error code: 149: The connection Failed,or timed out. (HTTP status code 405): HTTP Response Status: 405 Not Allowed HTTP Response 

环境:

  • 带有 Docker 20.x 的 MAC
  • 所有容器都在运行,所有端口也都已启动。我可以远程登录
  • OpenWhisk-Go-Client darwin amd64"

提前致谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)