Testing webhook on development server with Terra

ProgressiveBee8 months ago

I have been trying to setup a webhook on my development environment with Terra API but I keep recieving the message "Failed to reach url https://localhost:8080", what am I missing here or are there some other configurations I must setup?

terra

Matthewadmin8 months ago

Hi there,

The issue here is that Terra (like most APIs) can only access URLs that are publically available via the internet. However it seems you are attempting to provide a loopback URL which is only available within your machine and local testing environment; if you wish to test your local server with Terra, try using a software like Ngrok like so:

  1. Setup Ngrok by creating an account and downloading the CLI tool
  2. Open your terminal and navigate to your project
  3. Run the command ngrok http 8080
  4. Copy the Forwarding url + your webhook path
  5. Paste this on the dashboard when setting up your webhook

ProgressiveBee8 months ago

Got it, it's working now


Cookie Preferences

Essential CookiesAlways On
Advertisement Cookies
Analytics Cookies

Crunch Time: Embrace the Cookie Monster Within!

We use cookies to enhance your browsing experience and analyse our traffic. By clicking “Accept All”, you consent to our use of cookies according to our Cookie Policy. You can change your mind any time by visiting out cookie policy.