Something went wrong calling your webhook

I’m getting the following error when publishing a new story: Webhook failed. Something went wrong calling the webhook of space xxxxxx : Failed to open TCP connection to localhost:3000 (Connection refused - connect(2) for localhost 3000).

Story Published webhook:
http://localhost:4300/clear-cache

I’m handling the post request and sending the 200 code.

What am I doing wrong?
Thanks in advance for your help and support.

Hello Karen,

this http://localhost:4300/clear-cache is a local address and can’t be used for calling webhooks from Storyblok. This will only work when you deploy the project on a server that is accessible via the internet.
There are different services where you can deploy your project for example Zeit.co or Heroku.com in the case that your project is server side rendered.

1 Like