# Sls deploy failed for openwhisk

**URL:** <https://forum.serverless.com/t/sls-deploy-failed-for-openwhisk/7268>\
**Category:** Serverless Framework\
**Tags:** openwhisk\
**Created:** [February 5, 2019, 4:23am UTC](https://forum.serverless.com/t/sls-deploy-failed-for-openwhisk/7268 "2019-02-05T04:23:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krkamatg](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@krkamatg](https://forum.serverless.com/u/krkamatg)\
**Post date:** [February 5, 2019, 4:23am UTC](https://forum.serverless.com/t/sls-deploy-failed-for-openwhisk/7268/1 "2019-02-05T04:23:41Z")

</div>

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.
