Bot is not responding while using docker

(Chaitanya Tanniru) #1

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

0 Likes

(Maurice Doepke) #2

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

0 Likes

(Chaitanya Tanniru) #3

docker-compose.yml (524 Bytes)

0 Likes

(Maurice Doepke) #4

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

0 Likes

(Chaitanya Tanniru) #5

endpoints.yml (33 Bytes)

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

0 Likes

(Maurice Doepke) #6

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

0 Likes

(Caio Villa Silva Tsubake) #7

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

0 Likes