I have set up RasaX in a cluster environment using Kubernetes. I am however failing to connect to the duckling server. I am getting the error on the rasa production container. :
2020-03-02 03:37:57 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=‘duckling’, port=8000): Max retries exceeded with url: /parse (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7fa13bc3f748>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
How do I fix this error. I am thinking that duckling is using another hostname that is not “duckling” that is why I am getting this error. What should i put in my config file to fix this
Hey @SimbaM, so the url won’t just be duckling, it’ll be the service name. So probably something similar to <release-name>-duckling, but you can check that in your kubernetes console
Had a sample chat and this was what was in the logs of the production pod.
2020-03-08 12:23:42 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=‘rasa-x-1583082199-duckling’, port=80): Max retries exceeded with url: /parse (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f0e3db7c978>, ‘Connection to rasa-x-1583082199-duckling timed out. (connect timeout=3)’))