question

leonidSO avatar image
leonidSO asked ·

Webhook Error : Unable to reach Callback URL // SNI // Amazon Gateway API

We have encountered an error 'Unable to reach Callback URL' - entering our development API service URL where we would like to receive webhook events: https://example.com/clover/webhook . We work with Amazon API Gateway to accept messages & process them.

Testing it with other HTTPS addresses under the same domain without Amazon API Gateway was authenticated. We were able to reach the URL via Postman and other test methods , meaning that issue relates to authenticating with Amazon API Gateway .

The error "Unable to reach Callback URL "This issue was posted since 12/2015 till recently [ [link1](https://devask.clover.com/question/4692/unable-to-reach-callback-url/) [link2](https://devask.clover.com/question/4691/i-get-unable-to-reach-callback-url-in-webhooks/) [link3](https://devask.clover.com/question/4691/i-get-unable-to-reach-callback-url-in-webhooks/) [link4](https://devask.clover.com/question/3351/im-getting-unable-to-reach-callback-url-when-using-https-with-a-webhook-callback-url/) ]

One link suggested that may be related to SNI protocol (SSL handshake) .

No answer was provided if you are supporting this protocol and if there is a way to overcome this error ?

1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

I believe the problem lies in the HTTP Response Code & Meesage.

200 OK instead of 200 SUCCESS as reviewed in the API.

This is limiting us on delivering services as well.

Edit: Although I might be wrong, this is the only problem I see.

0 Likes 0 · ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered ·

I've made a work around by creating a LAMP server instance, a load balancer (to make it HTTPs without installing certs to the instance (thus it's free from amazon the certs) & then forwarding the call to the lambda function.

The problem is that the webhook won't accept OK as an http result phrase, it must be SUCCESS.

Hope it helps!

(note: calls are handled through PHP, since it's a simple http call, a free tier instance (or low cost) will be more than enough to get started).

Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community