Rasa x not giving response correctly or not showing output

@nik202

when i try to send email through chatbot its not display actions output

emphasized text

@Ncool1165 Can you please share rasa --version?

@Ncool1165 Even share the rasa x logs from the terminal please.

@Ncool1165 Is your action server is running in second terminal on port 5055? do share the action log please.

how to get rasa x logs ?

(rasaX_test) C:\Users\Admin\Desktop\rasa_conda>rasa --version
Rasa Version      :         2.8.6
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.2
Rasa X Version    :         0.39.3
Python Version    :         3.7.10
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         c:\users\admin\anaconda3\envs\rasax_test\python.exe

Yes its running in second cmd action log ;

rasa run actions
2021-09-30 15:31:52 INFO     rasa_sdk.endpoint  - Starting action endpoint server...
2021-09-30 15:31:52 INFO     rasa_sdk.executor  - Registered function for 'action_service'.
2021-09-30 15:31:52 INFO     rasa_sdk.executor  - Registered function for 'action_time_show'.
2021-09-30 15:31:52 INFO     rasa_sdk.executor  - Registered function for 'action_video'.
2021-09-30 15:31:52 INFO     rasa_sdk.executor  - Registered function for 'action_submit'.
2021-09-30 15:31:52 INFO     rasa_sdk.endpoint  - Action endpoint is up and running on http://0.0.0.0:5055

@Ncool1165 on the terminal on which you are running rasa x ; share screenshot please.

rasa x log

(rasaX_test) C:\Users\Admin\Desktop\rasa_conda> rasa x 
c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\rasa\shared\core\slots.py:317: FutureWarning: UnfeaturizedSlot is deprecated and will be removed in Rasa Open Source 3.0. Please change the type and configure the 'influence_conversation' flag for 
slot 'requested_slots' instead.
  category=FutureWarning,
Starting Rasa X in local mode... 🚀
2021-10-01 12:30:36 WARNING  rasax.community.services.insights.insight_service  - No local evaluation result files found.
2021-10-01 12:30:38 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1f957880d48 state=finished raised gaierror>
Traceback (most recent call last):
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\concurrent\futures\thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\socket.py", line 752, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\concurrent\futures\_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\futures.py", line 365, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\base_events.py", line 736, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\base_events.py", line 479, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
2021-10-01 12:30:38 ERROR    concurrent.futures  - exception calling callback for <Future at 0x1f9578801c8 state=finished returned list>
Traceback (most recent call last):
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\concurrent\futures\_base.py", line 324, in _invoke_callbacks
    callback(self)
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\futures.py", line 365, in _call_set_state
    dest_loop.call_soon_threadsafe(_set_state, destination, source)
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\base_events.py", line 736, in call_soon_threadsafe
    self._check_closed()
  File "c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\base_events.py", line 479, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[2021-10-01 12:30:50 +0530] [7296] [INFO] Goin' Fast @ http://0.0.0.0:5002
2021-10-01 12:30:50 INFO     sanic.root  - Goin' Fast @ http://0.0.0.0:5002

The server is running at http://localhost:5002/login?username=me&password=vpCwNEeq100W

[2021-10-01 12:30:51 +0530] [7296] [INFO] Starting worker [7296]
2021-10-01 12:30:51 INFO     sanic.root  - Starting worker [7296]
2021-10-01 12:30:53 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending coro=<TCPConnector._resolve_host() running at c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\futures.py:351, <TaskWakeupMethWrapper object at 0x000001F957555D98>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\aiohttp\connector.py:1002]> 
2021-10-01 12:30:53 ERROR    asyncio  - Task was destroyed but it is pending!
task: <Task pending coro=<TCPConnector._resolve_host() running at c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\aiohttp\connector.py:865> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at c:\users\admin\anaconda3\envs\rasax_test\lib\asyncio\futures.py:351, <TaskWakeupMethWrapper object at 0x000001F957936078>()]> cb=[TCPConnector._create_direct_connection.<locals>.drop_exception() at c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\aiohttp\connector.py:1002]> 
c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages\rasa\utils\train_utils.py:646: UserWarning: constrain_similarities is set to `False`. It is recommended to set it to `True` when using cross-entropy loss. It will be set to `True` by default, Rasa 
Open Source 3.0.0 onwards.
  category=UserWarning,

@Ncool1165 right, this is now more persistent issue with rasa x can you delete the cache and cookies from the default web browser.

@Ncool1165 can you install this pip install sanic-jwt==1.6.0 and run again please.

its saying already satisfied

pip install sanic-jwt==1.6.0
Requirement already satisfied: sanic-jwt==1.6.0 in c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages (1.6.0)
Requirement already satisfied: pyjwt==2.0.0 in c:\users\admin\anaconda3\envs\rasax_test\lib\site-packages (from sanic-jwt==1.6.0) (2.0.0)

@Ncool1165 can you downgrade rasa to rasa 2.8.1, just Install pip install rasa==2.8.1 and do run rasa --version and try run rasa x

rasa version

(rasaX_test) C:\Users\Admin\Desktop\rasa_conda>rasa --version
Rasa Version      :         2.8.1
Minimum Compatible Version: 2.8.0
Rasa SDK Version  :         2.8.2
Rasa X Version    :         0.39.3
Python Version    :         3.7.10
Operating System  :         Windows-10-10.0.19041-SP0
Python Path       :         c:\users\admin\anaconda3\envs\rasax_test\python.exe

same issue here

@Ncool1165 and same error logs of rasa x, can you share the screenshot for me?

@Ncool1165 I am working on this issue, please bear with; I’m also facing same issue in my windows 10 laptop but strange no issue in Mac. Give me some time for this solution please.

1 Like

Ya sure nik…thanks for help…i am waiting… :slight_smile:

Hi @Ncool1165 Nakul, Thanks for the wait. I personally went through all the dry run of the code for my secondary project on Window 10 Machine, but that Event Loop issue is still persistent, may be it’s bug in Rasa-X ( I will check with the team), on the other hand, on Mac Machine the Rasa - X is working absolutely error free.

Further, this error is not disturbing the bot/user conversation which is a good sign, thou the response can be bit slow, but you able to run your use case. I hope this information is valuable to you and give you satisfaction about the error is not so harmful for the code.

Good Luck!

ohkkss…thanks,sorry for the late reply…if any new issue is generated i will tag you…thanks :slight_smile: