Watcher webhooks and a 400 error

I have created a watcher and it is running as expected except for the action. I continue to get a http 400 error for the request. Is there a good way to debug this? Fiddler doesn't pick up this request. If I execute a http request to my desired end point manually then it works as expected. Any advice on this would be great. Below is my action part of my wacther

"actions": {
    "my_webhook": {
        "webhook": {
            "method": "POST",
            "host": "localhost",
            "port": 80,
            "path": "/testapp/api/watcher/10?type={{ctx.watch_id}}",
            "headers" : {
                "Content-Type": "application/json"
            },
            "body": "something"
        }
    }
}

I also noted that if I didn't add a body then I recieved errors about invalid content-length.

good chance your problem is with the path. The path only holds the path part of the URI... without the query string, try the following:

"actions": {
    "my_webhook": {
        "webhook": {
            "method": "POST",
            "host": "localhost",
            "port": 80,
            "path": "/testapp/api/watcher/10",
            "params" : {
                "type" : "{{ctx.watch_id}}"
            },
            "headers" : {
                "Content-Type": "application/json"
            },
            "body": "something"
        }
    }
}

Thanks Uri that worked a treat. I spoke with you @ Elasticon and you were just as helpful then too.

oh thx.. happy to help :blush: