serverless-openwhisk
serverless-openwhisk copied to clipboard
Deploy single function always fails
Deployment of single function always fails, see the output below. Need to run full deploy to succeed sls deploy
sls deploy function -f hello
Serverless: Packaging function: hello...
Serverless: Excluding development dependencies...
Type Error ---------------------------------------------
TypeError: Cannot read property 'artifact' of undefined
at Node.getArtifactPath (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/runtimes/base.js:99:30)
at Node.getArtifactZip (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/runtimes/base.js:92:31)
at Node.generateActionPackage (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/runtimes/base.js:83:17)
at Node.exec (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/runtimes/base.js:27:17)
at Runtimes.exec (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/runtimes/index.js:31:49)
at OpenWhiskCompileFunctions.compileFunction (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/compile/functions/index.js:104:26)
at OpenWhiskDeployFunction.compileFunction (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/serverless-openwhisk/deployFunction/index.js:49:34)
at OpenWhiskDeployFunction.tryCatcher (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/marcin.czeczko/Work/sandbox/runtime-service/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:131:23)
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information ---------------------------
Operating System: darwin
Node Version: 12.8.0
Framework Version: 1.67.0
Plugin Version: 3.6.0
SDK Version: 2.3.0
Components Version: 2.22.3
Version: SLS: 1.67.0 SLS-openwhisk: 0.18.4
serverless.yml
service: runtime-service
plugins:
- serverless-openwhisk
provider:
name: openwhisk
functions:
hello:
handler: handler.hello
annotations:
web-export: true