You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/06/11 07:07:09 UTC
[GitHub] [incubator-openwhisk] alexkli commented on issue #4510: Document
activation response handling with error property
alexkli commented on issue #4510: Document activation response handling with error property
URL: https://github.com/apache/incubator-openwhisk/issues/4510#issuecomment-500715391
Also worth documenting:
- if `error` is present, this value/object will become the return value. any other fields in the result object (siblings of `error`) will be dropped
- to get an error message displayed by `wsk activation get -s` or in errors of the npm `openwhisk` library, it has to be a string in `error.error`, otherwise you might get “missing response error message”
- this applies to web actions as well, i.e. the `error` object can be rendered as http response if it includes `statusCode`, `headers` and/or `body` (again, not in the root of the result)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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