Rasa x unable to connect to duckling

2020-05-19 14:52:15 ERROR rasa.nlu.extractors.duckling_http_extractor - Failed to connect to duckling http server. Make sure the duckling server is running/healthy/not stale and the proper host and port are set in the configuration. More information on how to run the server can be found on github: GitHub - facebook/duckling: Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings. Error: HTTPConnectionPool(host=‘172.17.0.2’, port=8000): Max retries exceeded with url: /parse (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7fca09812710>, ‘Connection to 172.17.0.2 timed out. (connect timeout=3)’)) 2020-05-19 14:52:15 ERROR rasa.core.processor - Encountered an exception while running action ‘action_fetch_profile’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

Did you try to connect the duckling with a terminal program in linux you can do this curl -XPOST http://localhost:8000/parse --data “locale=en_XX&text=this is my phone 555-555-5555”

for you instead localhost you should use 172.17.0.2, since it seems that you configured in a different way

Hi, Thanks for the quick response s I’ve made the changes in the config.yml with the duckling server ip address, which is 172.17.0.2, im still getting the issu.

What i have observed is, i’m able to curl the duckling server ip on the host server where the docker container resides but inside the docker im unable to get the response

Are you tested the connection to the duckling server from the same machine where rasa is running? Only to be sure that you do not have a firewall issue.

More than that I cannot help you, I am a newbie here

Yes, i’ve tested on the same machine