I've been encountering an issue with using the webhooks. I had a webhook set up and working great for several months on two of our organizations, but then I stopped getting any requests from the Dashboard to my webserver.
I can intentionally generate a down or up event that would previously hit the webhook, but I won't ever see a request in the Apache logs. If I use the "Test" button in the Dashboard Alerts page, I get an error back and still no request.
I have confirmed that the webhook script is otherwise accessible from external services, it is HTTPS enabled with a valid (wildcard) certificate, and all other requests show up properly in the webserver logs.
An interesting thing I found is in the following snippet of webhook logs requested from the Dashboard API:
{
"organizationId": "XXXXXX",
"networkId": "N_XXXXXX",
"sentAt": "2019-12-04T07:37:35.993999Z",
"loggedAt": "2019-12-04T07:37:36.118000Z",
"url": "https://webhooks.example.com/alertHook.php",
"alertType": "Cellular went down",
"responseCode": -1,
"responseDuration": 122
},
{
"organizationId": "XXXXXX",
"networkId": "N_XXXXXX",
"sentAt": "2019-12-04T07:37:41.061000Z",
"loggedAt": "2019-12-04T07:37:41.181999Z",
"url": "https://webhooks.example.com/alertHook.php",
"alertType": "Cellular went down",
"responseCode": -1,
"responseDuration": 120
},
{
"organizationId": "XXXXXX",
"networkId": "L_XXXXXX",
"sentAt": "2019-12-04T07:48:25.513000Z",
"loggedAt": "2019-12-04T07:48:25.727999Z",
"url": "https://webhooks.example.com/alertHook.php",
"alertType": "APs went down",
"responseCode": -1,
"responseDuration": 214
}
All the request logs indicate a responseCode of -1, but unfortunately, I'm unable to find any documentation (like almost all of the API) indicating what that return value means. I would obviously expect it to be the HTTP response code, but since it never hits the server, it makes sense it doesn't have one. I'm hoping that someone else has seen similar and can suggest what might be causing this. My assumption is that it is an issue with the config in the Dashboard, but I've tried removing/re-adding it, changing it, and otherwise tweaking with it while maintaining the key pieces with no luck.
Thank you in advance for any help/suggestions.