Question

Unable to test Webhooks

  • 19 February 2023
  • 2 replies
  • 87 views

Badge +4

Hi there,


I was testing webhooks for an endpoint, which I created on my server. But when I am testing the Webhooks. I get this message - "It wasn't possible to connect, are you sure the URL is correct?"

also my function return timeout

 

Please, advice what should I do to diagnose this error. 

Thanks


2 replies

Userlevel 6
Badge +8

Hey @Saeed Basweidan!

You’ll want to be sure you’re using a valid URL, and that it’s publicly accessible. It sounds like if your server function is timing out, you might have an issue that needs to be resolved before it will return a valid response to our webhook test request.

I’d recommend ensuring you’re returning a 200 code as soon as possible to our request, then doing any other actions later on in your function’s lifecycle. You can read more about webhooks here: https://www.revenuecat.com/docs/webhooks

Badge +2

Hi.  I ran into the same problem, I get the error "It wasn't possible to connect, are you sure the URL is correct?"Although my URL for the test webhook is correct and publicly available. At the moment there's not even any logic there. and the status code 200 is simply returned.  However, it doesn't work for me. Here is my test URL

https://foragentapp.kz/api/v1/webhook/revenuecat

Reply