Webhooks not firing. Error: Hostname/IP doesn't match certificate's altnames

(Yonahforst) #1

Today I started getting this error message when trying to make a Webhook POST to https://api.api.ai -
Hostname/IP doesn't match certificate's altnames: "Host: api.api.ai. is not in the cert's altnames: DNS:cloudfront.net, DNS:*.cloudfront.net"]

It was working yesterday…

(Yonahforst) #2

know what? Api.ai was aquired last night by google, that might have caused a flood of traffic to their servers so they added cloudfront.

(Joe Hatch) #3

Are you able to try the request to http://api.api.ai and send it over the non-secure connection which might bypass the certificate check.

(Yonahforst) #4

Hmmm. I kind of want to keep https.

I was able to get it working by making the request in code and setting rejectUnauthorized: false in the utils.request options

(Joe Hatch) #5

It seems as though the SSL certificate issue has been resolved for https://api.api.ai so you can probably remove that setting and try your initial request again :slight_smile:

2 Likes