Sls deploy failed for openwhisk

sls deploy function fails with Error

ServerlessError: Failed to deploy function (greeting) due to error: Unknown Error From API: socket hang up

I have followed all the documentations with respect to serverless setup and ibm cloud setup. serverless with lambda works perfectly fine, and ibm cloud function setup works fine individually. When i tried to use serverless to deploy functions to ibm cloud function it simply fails with below stack trace.

Stack Trace

at ow.actions.create.then.catch.err (/home/faasdev/IBMcloud/python-example/node_modules/serverless-openwhisk/deployFunction/index.js:70:15)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:391:22)
at PluginManager.run (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:422:17)
at variables.populateService.then.then (/usr/local/lib/node_modules/serverless/lib/Serverless.js:111:33)
at processImmediate (timers.js:632:19)
at process.topLevelDomainCallback (domain.js:120:23)
From previous event:
at Serverless.run (/usr/local/lib/node_modules/serverless/lib/Serverless.js:98:6)
at serverless.init.then (/usr/local/lib/node_modules/serverless/bin/serverless:43:28)

Any pointers/help would be greatly appreciated.