Rasa domain.yml file changes when i run rasa x

Hello everybody!

I have a question regarding rasa x, when I do run rasa x command , the domain file changes like the below:

utter_greet:

  - text: "Hey there! I am ISSABot, virtual assistant for the HR team.\n

          Kindly choose below how you would like to communicate?\n

            يرجى اختيار الطريقة التي ترغب في التواصل بها أدناه؟"

    buttons:

    - title: "English"

      payload: '/english_welcome'

    - title: "Arabic"

      payload: '/arabic_welcome'

after I run rasa x

utter_greet:

  - buttons:

    - payload: /english_welcome

      title: English

    - payload: /arabic_welcome

      title: Arabic

    text: "Hey there! I am ISSABot, virtual assistant for the HR team.\n Kindly choose\

      \ below how you would like to communicate?\n يرجى اختيار الطريقة التي ترغب في\

      \ التواصل بها أدناه؟"

I do have the below rasa version

Rasa Version     : 2.0.2
Rasa SDK Version : 2.0.0
Rasa X Version   : 0.33.1
Python Version   : 3.7.0
Operating System : Windows-10-10.0.18362-SP0

Please advise.

1 Like

Hi @MariamHar, Rasa X will dump things in a list in alphabetical order. So that is why after, you have buttons before text, and payload before title. Hope that helps!

1 Like

Hi @erohmensing thank you for your reply. The problem is that when I do retrain the model, it gives me an error saying that the domain file syntax is not working. How can I fix this error? Thank you

1 Like

Hm, that’s strange, does it tell you what the error is? Can you attach the full before/after?

domain_before.yml (694 Bytes) domain_after.yml (683 Bytes)

Below is the exception when i run rasa x: 2020-11-09 15:02:08 ERROR concurrent.futures - exception calling callback for <Future at 0x2839d554160 state=finished raised gaierror> Traceback (most recent call last): File “c:\users\user\appdata\local\programs\python\python37\lib\concurrent\futures\thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “c:\users\user\appdata\local\programs\python\python37\lib\socket.py”, line 748, 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\user\appdata\local\programs\python\python37\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\futures.py”, line 362, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\base_events.py”, line 717, in call_soon_threadsafe self._check_closed() File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\base_events.py”, line 461, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed 2020-11-09 15:02:08 ERROR concurrent.futures - exception calling callback for <Future at 0x2839d5542e8 state=finished returned list> Traceback (most recent call last): File “c:\users\user\appdata\local\programs\python\python37\lib\concurrent\futures_base.py”, line 324, in _invoke_callbacks callback(self) File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\futures.py”, line 362, in _call_set_state dest_loop.call_soon_threadsafe(_set_state, destination, source) File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\base_events.py”, line 717, in call_soon_threadsafe self._check_closed() File “c:\users\user\appdata\local\programs\python\python37\lib\asyncio\base_events.py”, line 461, in _check_closed raise RuntimeError(‘Event loop is closed’) RuntimeError: Event loop is closed

2020-11-09 15:02:24 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<TCPConnector._resolve_host() running at c:\users\user\appdata\local\programs\python\python37\lib\site-packages\aiohttp\connector.py:830> wait_for=<Future pending cb=[_chain_future.._call_check_cancel() at c:\users\user\appdata\local\programs\python\python37\lib\asyncio\futures.py:348, <TaskWakeupMethWrapper object at 0x000002839D545798>()]> cb=[shield.._done_callback() at c:\users\user\appdata\local\programs\python\python37\lib\asyncio\tasks.py:772]> 2020-11-09 15:02:24 ERROR asyncio - Task was destroyed but it is pending! task: <Task pending coro=<TCPConnector._resolve_host() running at c:\users\user\appdata\local\programs\python\python37\lib\site-packages\aiohttp\connector.py:830> wait_for=<Future pending cb=[_chain_future.._call_check_cancel() at c:\users\user\appdata\local\programs\python\python37\lib\asyncio\futures.py:348, <TaskWakeupMethWrapper object at 0x000002839D545678>()]> cb=[shield.._done_callback() at c:\users\user\appdata\local\programs\python\python37\lib\asyncio\tasks.py:772]>

1 Like