App runs fine outside docker, but with docker compose i get this error. Fail to find input class. But I have one, and it works fine outside docker, i reference it in credentials.yml:
# This file contains the credentials for the voice & chat platforms
# which your bot is using.
# https://rasa.com/docs/rasa/messaging-and-voice-channels
rest:
# # # you don't need to provide anything here - this channel doesn't
# # # require any credentials
addons.custom_connector.CrispInput:
identifier: '****************************************************''
key: '****************************************************''
website_id: '****************************************************'
#facebook:
# verify: "<verify>"
# secret: "<your secret>"
# page-access-token: "<your page access token>"
#slack:
# slack_token: "<your slack token>"
# slack_channel: "<the slack channel>"
# slack_signing_secret: "<your slack signing secret>"
#socketio:
# user_message_evt: <event name for user message>
# bot_message_evt: <event name for bot messages>
# session_persistence: <true/false>
#mattermost:
# url: "https://<mattermost instance>/api/v4"
# token: "<bot token>"
# webhook_url: "<callback URL>"
# This entry is needed if you are using Rasa Enterprise. The entry represents credentials
# for the Rasa Enterprise "channel", i.e. Talk to your bot and Share with guest testers.
# rasa:
# url: "http://localhost:5002/api"
Starting rasabot_rasa_1 ... done
Recreating rasabot_app_1 ... done
Attaching to rasabot_rasa_1, rasabot_app_1
app_1 | 2022-07-12 20:29:23 INFO rasa_sdk.endpoint - Starting action endpoint server...
app_1 | Traceback (most recent call last):
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
app_1 | conn = connection.create_connection(
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 95, in create_connection
app_1 | raise err
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/util/connection.py", line 85, in create_connection
app_1 | sock.connect(sa)
app_1 | ConnectionRefusedError: [Errno 111] Connection refused
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
app_1 | httplib_response = self._make_request(
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
app_1 | conn.request(method, url, **httplib_request_kw)
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 239, in request
app_1 | super(HTTPConnection, self).request(method, url, body=body, headers=headers)
app_1 | File "/usr/lib/python3.8/http/client.py", line 1256, in request
app_1 | self._send_request(method, url, body, headers, encode_chunked)
app_1 | File "/usr/lib/python3.8/http/client.py", line 1302, in _send_request
app_1 | self.endheaders(body, encode_chunked=encode_chunked)
app_1 | File "/usr/lib/python3.8/http/client.py", line 1251, in endheaders
app_1 | self._send_output(message_body, encode_chunked=encode_chunked)
app_1 | File "/usr/lib/python3.8/http/client.py", line 1011, in _send_output
app_1 | self.send(msg)
app_1 | File "/usr/lib/python3.8/http/client.py", line 951, in send
app_1 | self.connect()
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 205, in connect
app_1 | conn = self._new_conn()
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn
app_1 | raise NewConnectionError(
app_1 | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f35685a6a00>: Failed to establish a new connection: [Errno 111] Connection refused
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 440, in send
app_1 | resp = conn.urlopen(
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/connectionpool.py", line 785, in urlopen
app_1 | retries = retries.increment(
app_1 | File "/opt/venv/lib/python3.8/site-packages/urllib3/util/retry.py", line 592, in increment
app_1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
app_1 | urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/WfCgMLJRVV/bot/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f35685a6a00>: Failed to establish a new connection: [Errno 111] Connection refused'))
app_1 |
app_1 | During handling of the above exception, another exception occurred:
app_1 |
app_1 | Traceback (most recent call last):
app_1 | File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
app_1 | return _run_code(code, main_globals, None,
app_1 | File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
app_1 | exec(code, run_globals)
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/__main__.py", line 38, in <module>
app_1 | main()
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/__main__.py", line 34, in main
app_1 | main_from_args(cmdline_args)
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/__main__.py", line 18, in main_from_args
app_1 | run(
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/endpoint.py", line 139, in run
app_1 | app = create_app(
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/endpoint.py", line 82, in create_app
app_1 | executor.register_package(action_package_name)
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/executor.py", line 262, in register_package
app_1 | self._import_submodules(package)
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/executor.py", line 225, in _import_submodules
app_1 | self._import_module(full_name)
app_1 | File "/opt/venv/lib/python3.8/site-packages/rasa_sdk/executor.py", line 239, in _import_module
app_1 | module = importlib.import_module(name)
app_1 | File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
app_1 | return _bootstrap._gcd_import(name[level:], package, level)
app_1 | File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
app_1 | File "<frozen importlib._bootstrap>", line 991, in _find_and_load
app_1 | File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
app_1 | File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
app_1 | File "<frozen importlib._bootstrap_external>", line 848, in exec_module
app_1 | File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
app_1 | File "/app/actions/test.py", line 4, in <module>
app_1 | response = requests.post("http://localhost:5000/api/WfCgMLJRVV/bot/", data={"ead_id": str(ead_id)})
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 117, in post
app_1 | return request('post', url, data=data, json=json, **kwargs)
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/api.py", line 61, in request
app_1 | return session.request(method=method, url=url, **kwargs)
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 529, in request
app_1 | resp = self.send(prep, **send_kwargs)
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/sessions.py", line 645, in send
app_1 | r = adapter.send(request, **kwargs)
app_1 | File "/opt/venv/lib/python3.8/site-packages/requests/adapters.py", line 519, in send
app_1 | raise ConnectionError(e, request=request)
app_1 | requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=5000): Max retries exceeded with url: /api/WfCgMLJRVV/bot/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f35685a6a00>: Failed to establish a new connection: [Errno 111] Connection refused'))
rasabot_app_1 exited with code 1
rasa_1 | RasaException: Failed to find input channel class for 'addons.custom_connector.CrispInput'. Unknown input channel. Check your credentials configuration to make sure the mentioned channel is not misspelled. If you are creating your own channel, make sure it is a proper name of a class in a module.
rasabot_rasa_1 exited with code 1