question

nilesh-varma avatar image
nilesh-varma asked ·

Unable to configure webhook URL getting error "Unable to reach callback URL"

When we use ngrock on our local server and test, it works fine. But when we replace the ngrock url with our Production URL it gives us the "Unable to reach callback URL". Please confirm if web hook works only with virtual URL and not with absolute URL.
Webhooks
4 comments
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.

Hi nilesh_varma,

In order to better assist you, can you please provide steps you took to get to this error message? When you say you replaced the ngrok URL with your production URL, did you do that in the Webhooks settings page (see screenshot below)? Also, at what point are you getting the error "Unable to reach callback URL"? When confirming the Webhook URL in the Webhooks settings page?

Webhooks will work with absolute URLs, just as long as they're a publicly accessible endpoint that accepts POST requests.

0 Likes 0 · ·
Yes i get the mentioned error on this above screen. For eg. if I use ngrok url : https://03dae5bb.ngrok.io/CAWCloverAPI/rest/withou... then it works but if replace 03dae5bb.ngrok.io with my server url cawtest02.clickawaiter.com then it gives me error. For below URL i am getting the error : https://cawtest02.clickawaiter.com/CAWCloverAPI/re... . This site has valid SSL certificates. I am also able to reach this URL by Postman. Kindly advise.
0 Likes 0 · ·

Hi @nilesh_varma,
The url you provided as your server url shows a warning that the SSL certificate is invalid. Please note that the documentation for webhooks states that Clover supports only HTTPS-enabled callbacks. https://docs.clover.com/clover-platform/docs/webhooks#section--add-a-webhook-callback-url-

0 Likes 0 · ·

@Frank Faustino I am getting the same error.This is my url https://uno.berylsystems.com/api/handler and its working fine on Postman.Please help.

0 Likes 0 · ·

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered ·
In the header (use postman) check if your server is returning "200 OK" in the response code.


That's the only thing I'm figuring might be going on.
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