Hi, I fall into a project that uses rasa, docker and docker-compose.
I don’t know how to correctly deal with that, but I have to use Duckling to extract time.
The problem is that I can’t install Duckling.
This is what I’ve already tried:
Added in config.yml
- name: "DucklingHTTPExtractor"
url: http://localhost:8000
dimensions: ["time"]
locale: "pt_PT"
Added in docker-compose.yml
duckling:
image: rasa/duckling:latest
ports:
- "8000:8000"
and depends_on:
bot:
container_name: genericBot
image: lappis/bot:boilerplate
build:
context: .
dockerfile: ./docker/bot.Dockerfile
restart: unless-stopped
ports:
- 5004:5004
depends_on:
- actions
- duckling
env_file:
- env/bot-telegram.env
And I always get some errors:
ERROR: for chatbot-bino_duckling_1 Cannot start service duckling: b’driver failed programming external connectivity on endpoint chatbot-bino_duckling_1…
or
Could not parse timestamp...
root - Instead current UTC time will be passed to duckling. Error: invalid literal for int() with base 10: ...
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: https://github.com/facebook/duckling#quickstart Error: HTTPConnectionPool(host='localhost', port=8005): Max retries exceeded with url: /parse (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f63b2f7b5c0>: Failed to establish a new connection: [Errno 111] Connection refused',))
What am I doing wrong?