It looks like the hook is getting reporting that SSL certificate as being untrusted for some reason. I just ran the site through ssllabs.com validator and got a failed report from the server.
If you want your hook to ignore a bad SSL certificate, you can add a parameter to it when creating it:
#add this to your hook
rejectUnauthorized: false
edit: It’s possible we might be missing a newer Certificate authority, but you should definitely also checkout the ssllabs report when you have time, it’s important to keep up on changes to SSL too. I hope that helps!
Ahh, I thought originally that it was either a CORS, SSL, or Remote Database Access Hosts issue with my database. Now we know. Thank you for looking and providing a work around until I can get the SSL properly registered.
I will update everyone on how this works.
Sam
Okay, this works. Note that I have one hook called "breathe" and I have two devices (a photon sending the event name "breathe" and an electron sending the event name "breathe2"). "breathe" responds to both "breathe" and "breathe2". I did not know if this was your intent.
Regardless, I have to call it a success for an electron to dutifully log data directly into my database every so many minutes. Great work guys!
Glad it’s working again for ya! The webhook event name filters are ‘prefix’ filters, so any event starting with your filtered event name will be included.