我正在按照 OpenWhisk 文档中的示例创建一个新的包操作,详见此处。
运行该wsk action invoke步骤,平台向我返回一条调用错误消息。
[10:57:58 /tmp/workshop]$ wsk action invoke --blocking --result packageAction --param lines '[ "and now", "for something fully", "different" ]'
{
"error": "初始化失败,原因是:SyntaxError: Invalid or unexpected token
在 NodeActionRunner.init (/nodejsAction/runner.js:79:29)
在 doInit (/nodejsAction/src/service.js:134:31)
在 initCode (/nodejsAction/src/service.js:80:24)
在 /nodejsAction/app.js:62:13
在 Layer.handle [as handle_request] (/nodejsAction/node_modules/express/lib/router/layer.js:95:5)
在下一个(/nodejsAction/node_modules/express/lib/router/route.js:131:13)
在 Route.dispatch (/nodejsAction/node_modules/express/lib/router/route.js:112:3)\n 在 Layer.handle [as handle_request] (/nodejsAction/node_modules/express/lib/router/layer.js: 95:5)\n 在 /nodejsAction/node_modules/express/lib/router/index.js:277:22\n 在 Function.process_params (/nodejsAction/node_modules/express/lib/router/index.js:330:12 )"
}
怎么了?