So I updated everything according to your blog post, resulting in following files:
Dockerfile (action):
FROM rasa/rasa-sdk:3.0.2
WORKDIR /app
EXPOSE 5055
USER 1001
Dockerfile (rasa):
FROM rasa/rasa:3.0.4-full
WORKDIR '/app'
COPY . /app
USER root
RUN rasa train
VOLUME /app/models
CMD [ "run","-m","/app/models","--enable-api","--cors","*","--debug" ,"--endpoints", "endpoints.yml", "--log-file", "out.log", "--debug"]
EXPOSE 5005
Docker-compose:
version: '3'
services:
rasa:
container_name: "rasa_server"
user: root
build:
context: ./rasa/projects/abc_en
volumes:
- "./:/app"
ports:
- "5005:5005"
action_server:
container_name: "action_server"
build:
context: ./rasa/projects/abc_en/actions
volumes:
- ./actions:/app/actions
- ./data:/app/data
ports:
- 5055:5055
endpoints.yml
action_endpoint:
url: "http://action_server:5055/webhook"
Everything builds and starts without errors. However, as soon as I make a request (with postman) to (http://localhost:5005/webhooks/rest/webhook) which uses custom actions I get the following error in the console:
rasa_server | 2022-02-03 12:13:07 ERROR rasa.core.processor - Encountered an exception while running action 'action_get_achievements'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 868, in _run_action
rasa_server | events = await action.run(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/core/actions/action.py", line 709, in run
rasa_server | raise RasaException(
rasa_server | rasa.shared.exceptions.RasaException: Failed to execute custom action 'action_get_achievements' because no endpoint is configured to run this custom action. Please take a look at the docs and set an endpoint configuration via the --endpoints flag. https://rasa.com/docs/rasa/custom-actions
I am not sure what’s wrong here as I added an endpoint and the actions server is running. Any ideas?