2018-08-07 03:41:40 ERROR rasa_nlu.extractors.duckling_http_extractor - Failed to connect to duckling http server. Make sure the duckling server is running and the proper host and port are set in the configuration. More information on how to run the server can be found on github: https://github.com/facebook/duckling#quickstart Error: HTTPConnectionPool(host='duckling', port=8000): Max retries exceeded with url: /parse (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f1589ab8f10>: Failed to establish a new connection: [Errno -2] Name or service not known',))```
You are running from docker and rasa from where? another docker? keep in mind Docker runs a virtual process that creates it’s own network so if you have two separate running containers on localhost, they are actually running in two different virtualised environment and hence can’t find each other. use --link to provide a network name or use docker-compose to spin them up together( rasa + duckling) this way every container will be able to find each other using the hostname as the container name
ERROR rasa_nlu.extractors.duckling_http_extractor - Failed to connect to duckling http server. Make sure the duckling server is running and the proper host and port are set in the configuration. More information on how to run the server can be found on github: https://github.com/facebook/duckling#quickstart Error: HTTPConnectionPool(host='178.128.15.202', port=8000): Max retries exceeded with url: /parse (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6e96d7b150>: Failed to establish a new connection: [Errno 110] Connection timed out',))
If you are using docker, you need to create one network where both containers(NLU and duckling runs)
which is why docker-compose is useful, hence i referred you to my code.
take a look at this file
if you run them under the same network in docker, it will create a network name and then it will be able to find duckling
@JiteshGaikwad , Thanks for help mate. I was not running the duckling server. It’s working now.
But I’ve another problem with interactive learning method,
hey @niharika2298 I haven’t used docker but you can use spacy entity extractor, now spacy too extracts the entity the same way duckling does l, if you want some more information you can refer this link Entity Extraction with spaCy - Sematext