Bot is not responding while using docker

After running docker-compose up, it running on port : 5005, but when we are giving input

curl --request POST
–url http://localhost:5005/webhooks/rest/webhook
–header ‘content-type: application/json’
–data ‘{ “message”: “hello” }’

i got an error:

curl: (7) Failed to connect to localhost port 5005: Connection refused

Post your docker compose file, there might be an error in it.

docker-compose.yml (524 Bytes)

How does your endpoints config look like? And What does the console output of rasa say?

endpoints.yml (33 Bytes)

Console output: curl: (7) Failed to connect to localhost port 5005: Connection refused

I asked what the rasa output says not curl, does start without errors?

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” }’

1 Like

thank you! you solved my problem :slight_smile: