JSON payload error when trying to attach flowhook
Closed this issue · 1 comments
rhawleyiii commented
I am trying to attach a flowhook using the Linux binary, and receiving a JSON payload error.
$ apigeecli flowhooks attach -n PreTargetFlowHook -s rj-SFPreTargetHookV1 -e sandbox01
ERROR: 2022/04/08 09:37:33 httpclient.go:349: status code 400, error in response: {
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"name\" at 'body': Cannot find field.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "body",
"description": "Invalid JSON payload received. Unknown name \"name\" at 'body': Cannot find field."
}
]
}
]
}
}
Get and Detach functions work correctly
$ apigeecli flowhooks get -e sandbox01 -n PreTargetFlowHook
{
"flowHookPoint": "PreTargetFlowHook",
"sharedFlow": "rj-SFPreTargetHookV1",
"continueOnError": true
}
$ apigeecli flowhooks detach -n PreTargetFlowHook -e sandbox01
{
"flowHookPoint": "PreTargetFlowHook",
"continueOnError": true
}
srinandan commented
I have a fix for it. When I publish the next release, I will include this.