Closed swizardlv closed 7 years ago
> node
> const uuid = require("node-uuid");
undefined
> JSON.stringify({x:uuid})
'{}'
Are you meaning to get a new uuid
and pass that to openwhisk as a parameter rather than passing the uuid
object itself anyway? Undefined/functions are not serialized anyway.
Try this instead:
JSON.stringify({x:uuid.v1()})
'{"x":"98bf0460-e9d5-11e6-84e9-736ec63b0367"}'
@rabbah i want to pass some functions to openwhisk (maybe some rest call with credentials). in the action of openwhisk it can be called with some parameters.
is that possible?
Parameters passed between actions are json objects - you have to serialize values otherwise it will be work. You can send a function as a string and eval it in some other action to run it.
Closing as invalid (if you want to pass a function, you can serialize it to string and eval
it later).
Environment details:
Steps to reproduce the issue:
Provide the expected results and outputs:
Provide the actual results and outputs:
Additional information you deem important: