Hello. I’m playing around with a development version of Ushahidi to figure our if it’s the right platform for me. I followed the instructions to spin up the platform via vagrant and the client via gulp. I’m having a little trouble with using Webhooks, I’m hoping someone can help me out.
I set up a Webhook to send to a local address when a post is created, created a post, but nothing came through. Tried again with a VPS address, same thing. I confirmed the connection was working by doing a HTTP GET on the same address from my development machine
I couldn’t find any documentation on it except about setting up a cronjob to run ./bin/ushahidi webhook send
, so I ran that in the vagrant instance and got:
"errors": [
{
"status": "Deprecated",
"title": "The each() function is deprecated. This message will be suppressed on further calls",
"message": "The each() function is deprecated. This message will be suppressed on further calls",
"class": "ErrorException",
"file": "/home/vagrant/Code/platform-api/vendor/aura/di/src/Factory.php",
"line": 622,
"trace": [
{
"function": "error_handler",
"class": "Kohana_Core",
"type": "::",
"args": [
8192,
"The each() function is deprecated. This message will be suppressed on further calls",
"/home/vagrant/Code/platform-api/vendor/aura/di/src/Factory.php",
622,
{
"entity": false,
"traits": {
"Ushahidi\\Core\\Traits\\Event": "Ushahidi\\Core\\Traits\\Event"
}
}
]
},
...
Any ideas? Am I misunderstanding/misconfiguring the Webhooks?
The functionality I’m hoping to use Webhooks for is to build a service to notify users about posts in a particular region. I don’t suppose something like that already exists in the platform?
Cheers,
Xiao