misl commented on issue #2466: [Feature request] OpenWhisk Java Client sdk URL: https://github.com/apache/incubator-openwhisk/issues/2466#issuecomment-346838319 The expected data was not received due to setting the result query parameter to `true`. According to swagger definition: ``` ... { "name": "result", "in": "query", "description": "Return only the result of a blocking activation. Default is false.", "required": false, "type": "string", "enum": [ "true", "false" ] }, ... ``` Even though I was doing a blocking call, I still had to set it to `false` to get the activation details. This brought a little further, but parsing the activation/response resulted into an exception. For this to parse correctly I had to make another modification to the swagger file. ``` "logs": { "type": "array", "description": "Logs generated by the activation", "type": "string" } ``` Had to become: ``` "logs": { "type": "array", "description": "Logs generated by the activation", "items": { "type": "string" } } ``` Doing this in 2 different places made the response parse correctly. Looking at the response in more details it looks like there is another mismatch in the api specification. The `activation.result` (from the specification) is not present in the response but `activation.response` (unspecified) is. Below is an example response I got during testing: ``` "response":{ "result":{ "id":"123", "Name":"name" }, "success":true, "status":"success" } ```
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
