Hi @Chaitanya, are you running on Windows?
I was having the same problem when running Docker Toolbox on my Windows 8.1
The solution was to make a request to the ip of the Virtual Machine instead of localhost.
you can use the docker-machine ip command to find it.
So if your ip is 192.168.99.100, your request would be:
curl --request POST
–url http://192.168.99.100:5005/webhooks/rest/webhook
–header ‘content-type: application/json’
–data ‘{ “message”: “hello” }’