ibm-functions / composer

Composer is a new programming model for composing cloud functions built on Apache OpenWhisk.
Apache License 2.0
134 stars 26 forks source link

app invoke error, activation id reported as number #34

Closed starpit closed 6 years ago

starpit commented 6 years ago

reported by user @rabbah initially against the shell https://github.com/ibm-functions/shell/issues/277

> app invoke travis2slack.app
Cannot find result of session 6.040932803884217e+31

trace:

repl::issuing await-app 60409328038842168093280388221645 --name xyz.app --path yyy_dev/xyz.app Sun Jan 21 2018 10:53:30 GMT-0500 (EST)
/Users/rabbah/.node/lib/node_modules/@ibm-functions/shell/dist/IBM Cloud Fu…oud Functions Shell.app/Contents/Resources/app.asar/content/js/repl.js:506 repl::issuing activation get 6.040932803884217e+31 Sun Jan 21 2018 10:54:01 GMT-0500 (EST)
/Users/rabbah/.node/lib/node_modules/@ibm-functions/shell/dist/IBM Cloud Fu…ll.app/Contents/Resources/app.asar/plugins/ui/commands/openwhisk-core.js:1 wsk::calling openwhisk activations get 6.040932803884217e+31 Object
/Users/rabbah/.node/lib/node_modules/@ibm-functions/shell/dist/IBM Cloud Fu…/Contents/Resources/app.asar/plugins/modules/composer/lib/await-app.js:224 Cannot find result of session 6.040932803884217e+31
repl.qexec.then.catch.err2 @ /Users/rabbah/.node/lib/node_modules/@ibm-functions/shell/dist/IBM Cloud Fu…/Contents/Resources/app.asar/plugins/modules/composer/lib/await-app.js:224
ui.js:470 Cannot find result of session 6.040932803884217e+31 Cannot find result of session 6.040932803884217e+31 undefined Cannot find result of session 6.040932803884217e+31

i believe this is an unintended accident: the activation id is a number (contained no alpha chars) so it was printed as such vs a string.

starpit commented 6 years ago

probably a shell bug, due to the minimist npm (see https://github.com/ibm-functions/shell/issues/284)