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