You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/08/14 13:11:44 UTC

[GitHub] mdeuser opened a new issue #2617: Invoking action via CLI with the -b and -r options gives non-zero exit code

mdeuser opened a new issue #2617: Invoking action via CLI with the -b and -r options gives non-zero exit code 
URL: https://github.com/apache/incubator-openwhisk/issues/2617
 
 
   ## Environment details:
   
   * Bluemix
   
   ## Steps to reproduce the issue:
   
   1.   Create an action (normal action or web action) that returns a promise that's resolved with a JSON object
   ```
   function main(args) {
      return new Promise((resolve, reject) => {
          resolve({"response":{"SomeField":1}});
      });
   }
   ```
   2.  Invoke the action via CLI using the `-b` and `-r` options
   3.  Compare results to invoking action with just the `-b` option
   
   
   ## Provide the expected results and outputs:
   Eixt code of 0 and output:
   ```
   {
     "SomeField": 1
   }
   ```
   
   
   ## Provide the actual results and outputs:
   Exit code of -56 and output:
   ```
   error: Unable to invoke action 'YOUR-ACTION': The connection failed, or timed out. (HTTP status code 200)
   Run 'wsk --help' for usage.
   ```
   
   
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services