You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
local deployment, vagrant, native ubuntu, Mac OS, Bluemix, ...
version of docker, vagrant, ubuntu, ...
Deployed to Bluemix api.ng.bluemix.net
It appears that if you invoke your Cloud Function via the CLI it will fail with error: Unable to invoke action 'nestedDictionaryError': The connection failed, or timed out. (HTTP status code 200) if you include a key labeled response in your output.
Steps to reproduce the issue:
Create the following Cloud Function in python
def main(args):
result = {'message': 'error result', 'response': {'key1': 'value1','key2': 'value2' }}
if args and args['resultType'] and args['resultType'] == 'error':
return {'message': 'error result', 'response': {'key1': 'value1','key2': 'value2' }}
else:
return {'message': 'error result', 'not_response': {'key1': 'value1', 'key2': 'value2'}}
Provide the expected results and outputs:
Provide the actual results and outputs:
Fails
wsk action invoke --result nestedDictionaryError --param resultType "error"
error: Unable to invoke action 'nestedDictionaryError': The connection failed, or timed out. (HTTP status code 200)
Run 'wsk --help' for usage.
Environment details:
Deployed to Bluemix api.ng.bluemix.net
It appears that if you invoke your Cloud Function via the CLI it will fail with
error: Unable to invoke action 'nestedDictionaryError': The connection failed, or timed out. (HTTP status code 200)
if you include a key labeledresponse
in your output.Steps to reproduce the issue:
Create the following Cloud Function in python
Provide the expected results and outputs:
Provide the actual results and outputs:
Fails
Works
Even if response is reserved we should get a better message than that.
Additional information you deem important:
The text was updated successfully, but these errors were encountered: