Hi,
→ I’m deploying my rasa bot on telegram, However having errors when getting responses from action.py file
→ For messages which do not dependent on actions.py works fine.
→ Bot works fine on local server but not running properly after being deployed.
rasa_server | 2021-05-06 08:58:35 DEBUG urllib3.connectionpool - https://api.telegram.org:443 "GET /bo t1745206102:AAFv9pxD7uY41HxOzJjwY9_CZhR9BCxmH3o/getMe HTTP/1.1" 200 200
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.lock_store - Issuing ticket for conversation '116995 3140'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.lock_store - Acquiring lock for conversation '116995 3140'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.lock_store - Acquired lock for conversation '1169953 140'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.tracker_store - Could not find tracker for conversat ion ID '1169953140'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.processor - Starting a new session for conversation ID '1169953140'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.processor - Policy prediction ended with events '[]' .
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.shared.core.events.SessionStarted object at 0x7fb77dddaf40>, ActionExecuted(action: action_list en, policy: None, confidence: None)]'.
rasa_server | 2021-05-06 08:58:35 DEBUG rasa.core.processor - Current slot values:
rasa_server | battery: None
rasa_server | battery_backup: None
rasa_server | budget: None
rasa_server | camera: None
rasa_server | category: None
rasa_server | country: None
rasa_server | location: None
rasa_server | ram: None
rasa_server | requested_slot: None
rasa_server | storage_capacity: None
rasa_server | session_started_metadata: None
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Received user message 'I want to buy a p hone' with intent '{'id': 7950272602503301490, 'name': 'buy_phone_laptop', 'confidence': 0.998349130153656}' an d entities '[{'entity': 'category', 'start': 16, 'end': 21, 'confidence_entity': 0.7049577832221985, 'value': ' phone', 'extractor': 'DIETClassifier'}]'
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Current slot values:
rasa_server | battery: None
rasa_server | battery_backup: None
rasa_server | budget: None
rasa_server | camera: None
rasa_server | category: phone
rasa_server | country: None
rasa_server | location: None
rasa_server | ram: None
rasa_server | requested_slot: None
rasa_server | storage_capacity: None
rasa_server | session_started_metadata: None
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 5 events.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.memoization - Current tracker state:
rasa_server | [state 1] user intent: buy_phone_laptop | user entities: ('category',) | previous action nam e: action_listen | slots: {'category': (1.0,)}
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.memoization - There is no memorised next ac tion
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ted_policy - TED predicted 'product_search_ form' based on user intent.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.form_policy - There is no active form
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, co nfidence of fallback action set to core threshold (0.3).
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ensemble - Made prediction using user inten t.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeat urization(False)` event.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ensemble - Predicted next action using poli cy_1_TEDPolicy.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Predicted next action 'product_search_fo rm' with confidence 1.00.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.actions.action - Calling action endpoint to run acti on 'product_search_form'.
rasa_server | 2021-05-06 08:58:36 ERROR rasa.core.actions.action - Failed to run custom action 'produc t_search_form'. Couldn't connect to the server at 'https://livebot.online:5055/webhook'. Is the server running? Error: Cannot connect to host livebot.online:5055 ssl:default [[SSL: WRONG_VERSION_NUMBER] wrong version numbe r (_ssl.c:1123)]
rasa_server | 2021-05-06 08:58:36 ERROR rasa.core.processor - Encountered an exception while running a ction 'product_search_form'.Bot will continue, but the actions events are lost. Please check the logs of your a ction server for more information.
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 936, in _wrap_crea te_connection
rasa_server | return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
rasa_server | File "uvloop/loop.pyx", line 2019, in create_connection
rasa_server | File "uvloop/loop.pyx", line 2014, in uvloop.loop.Loop.create_connection
rasa_server | File "uvloop/sslproto.pyx", line 515, in uvloop.loop.SSLProtocol._on_handshake_complete
rasa_server | File "uvloop/sslproto.pyx", line 497, in uvloop.loop.SSLProtocol._do_handshake
rasa_server | File "/usr/lib/python3.8/ssl.py", line 944, in do_handshake
rasa_server | self._sslobj.do_handshake()
rasa_server | ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)
rasa_server |
rasa_server | The above exception was the direct cause of the following exception:
rasa_server |
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/core/actions/action.py", line 688, in run
rasa_server | response = await self.action_endpoint.request(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/utils/endpoints.py", line 146, in request
rasa_server | async with session.request(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/client.py", line 1012, in __aenter__
rasa_server | self._resp = await self._coro
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/client.py", line 480, in _request
rasa_server | conn = await self._connector.connect(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 523, in connect
rasa_server | proto = await self._create_connection(req, traces, timeout)
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 858, in _create_co nnection
rasa_server | _, proto = await self._create_direct_connection(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 1004, in _create_d irect_connection
rasa_server | raise last_exc
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 980, in _create_di rect_connection
rasa_server | transp, proto = await self._wrap_create_connection(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/aiohttp/connector.py", line 941, in _wrap_crea te_connection
rasa_server | raise ClientConnectorSSLError(req.connection_key, exc) from exc
rasa_server | aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host livebot.online:505 5 ssl:default [[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)]
rasa_server |
rasa_server | During handling of the above exception, another exception occurred:
rasa_server |
rasa_server | Traceback (most recent call last):
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/core/processor.py", line 772, in _run_act ion
rasa_server | events = await action.run(
rasa_server | File "/opt/venv/lib/python3.8/site-packages/rasa/core/actions/action.py", line 720, in run
rasa_server | raise RasaException("Failed to execute custom action.")
rasa_server | rasa.shared.exceptions.RasaException: Failed to execute custom action.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Policy prediction ended with events '[<r asa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x7fb77ddda730>]'.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Action 'product_search_form' ended with events '[]'.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Current slot values:
rasa_server | battery: None
rasa_server | battery_backup: None
rasa_server | budget: None
rasa_server | camera: None
rasa_server | category: phone
rasa_server | country: None
rasa_server | location: None
rasa_server | ram: None
rasa_server | requested_slot: None
rasa_server | storage_capacity: None
rasa_server | session_started_metadata: None
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.memoization - Current tracker state:
rasa_server | [state 1] user intent: buy_phone_laptop | user entities: ('category',) | previous action nam e: action_listen | slots: {'category': (1.0,)}
rasa_server | [state 2] user intent: buy_phone_laptop | user entities: ('category',) | previous action nam e: product_search_form | slots: {'category': (1.0,)}
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.memoization - There is no memorised next ac tion
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ted_policy - TED predicted 'action_listen' based on user intent.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'buy_phone_laptop'.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.form_policy - There is no active form
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, co nfidence of fallback action set to core threshold (0.3).
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.policies.ensemble - Predicted next action using poli cy_1_TEDPolicy.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Predicted next action 'action_listen' wi th confidence 1.00.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Policy prediction ended with events '[]' .
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
rasa_server | 2021-05-06 08:58:36 DEBUG rasa.core.lock_store - Deleted lock for conversation '11699531 40'.