Tips for webhook debugging?

Hmm… Looks like your target site is down?


; <<>> DiG 9.8.3-P1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 22984
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;		IN	A

;; AUTHORITY SECTION:		51	IN	SOA 2012264626 3600 600 604800 60

;; Query time: 27 msec
;; WHEN: Wed Oct  7 15:54:57 2015
;; MSG SIZE  rcvd: 98
$ ping -a
ping: cannot resolve Unknown host

Sounds like a DNS issue?


Hmm, double-checking this, I don’t see any hooks anywhere registered to anything at, what url are you hitting?


Hi @sjaybach,

Ahh, cool, thanks!

It looks like the hook is getting reporting that SSL certificate as being untrusted for some reason. I just ran the site through 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! :slight_smile:


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.

1 Like

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!


Hi @sjaybach,

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. :slight_smile:


A friend just pointed me at as a tool like the ssllabs validator, but with source code and local execution. Thought I’d pass on the tip.

1 Like