I am running rasa core and nlu in 2 docker containers.
The problem that am facing is when am sending request to http://localhost:5005/webhooks/rest/webhook endpoint am getting the below error in rasa core logs -
2019-03-08 10:37:25 INFO root - Rasa Core server is up and running on http://localhost:50052019-03-08 10:37:34 ERROR rasa_core.interpreter - Failed to parse text ‘hi’ using rasa NLU over http. Error: HTTPConnectionPool(host=‘127.0.0.1’, port=5000): Max retries exceeded with url: /parse?model=nlu&project=HCaiConversation&q=hi (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f06935b5be0>: Failed to establish a new connection: [Errno 111] Connection refused’,))
I have mentioned the nlu url in endpoints.yml like below
The same setup was working 1 month back but now am facing this connectivity issue.
Can someone help me to resolve this issue ?
I have a demo next week…
Please let me know if any other files you want to check .
@sandeepkumarsahoo
How do you start up the docker container? using docker-compose?
if you are using docker-compose, instead of 127.0.0.1, use the name of the nlu container as hostname
if you are starting two docker run, then you need to link the containers to create a single network where you can connect to them using the same hostname
I am not using docker-compose . I am running as to individual containers .
if you are starting two docker run, then you need to link the containers to create a single network where you can connect to them using the same hostname.
How can i do this ?
Can you please help me …
I have tried by creating a new network but still getting the same issue.
I have kept the required rasa files in git. Could you please try to run in your local once?
Yes you are right @souvikg10 . I will try with docker compose.
I have another doubt regarding the threshhold value for nlu and core,
Actually my requirement is to reply only those values whose conf. level is more than 90%.
So for this I have created a new file policies.yml with the below props:-
And added --config policies.yml during rasa training like below ;-
RUN python -m rasa_core.train -d domain.yml -s stories.md -o models/dialogue --config policies.yml
Am able to run but the problem is what ever value am passing it always returns default message.
I checked with /parse endpoint of NLU ,the same message returns 96% confidence.
Could you please check once or do i need to add anything ?