In the following code, resp is overwritten by activation.response field when called d.Decode(&errorResponse). So resp.StatusCode is changed to activation's status code, not HTTP response status code. This causes parseApplicationError never calls when parsing action developer error activation.
In the following code,
resp
is overwritten byactivation.response
field when calledd.Decode(&errorResponse)
. Soresp.StatusCode
is changed to activation's status code, not HTTP response status code. This causesparseApplicationError
never calls when parsing action developer error activation.https://github.com/apache/incubator-openwhisk-client-go/blob/4286a8212a74c40d8950ee76681a67e12c9bf1a0/whisk/client.go#L557-L569
This PR changes to ignore
ErrorResponse.Response
field on parsing.