# Getting error while running the ACTION SERVER

**URL:** <https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496>\
**Category:** Rasa Open Source\
**Created:** [June 22, 2020, 11:47am UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496 "2020-06-22T11:47:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nagababu](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nagababu](https://forum.rasa.com/u/nagababu)\
**Post date:** [June 22, 2020, 11:47am UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/1 "2020-06-22T11:47:18Z")

</div>

events = action(dispatcher, tracker, domain) File “C:\Users\LENOVO\Desktop\RASA\actions.py”, line 50, in run entities = Tracker.latest\_message.Text(‘entities’) AttributeError: type object ‘Tracker’ has no attribute ‘latest\_message’ Getting the above error could anyone heklp me to resolve the error .TIA

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 22, 2020, 12:51pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/2 "2020-06-22T12:51:14Z")

</div>

Hi @nagababu,

Welcome to Rasa Community!.

> [@nagababu](#):
>
> Tracker.latest\_message.Text(‘entities’)

Try

`tracker.latest_message.get('entities')`

---

<div class="post-metadata">

**Author:** ![nagababu](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nagababu](https://forum.rasa.com/u/nagababu)\
**Post date:** [June 22, 2020, 1:25pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/3 "2020-06-22T13:25:31Z")

</div>

Hi @MuraliChandran14Tried getting the same error AttributeError: type object ‘Tracker’ has no attribute ‘latest\_message’

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 22, 2020, 1:27pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/4 "2020-06-22T13:27:45Z")

</div>

Can you share your actions.py

---

<div class="post-metadata">

**Author:** ![nagababu](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nagababu](https://forum.rasa.com/u/nagababu)\
**Post date:** [June 22, 2020, 1:32pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/5 "2020-06-22T13:32:41Z")

</div>

class Search\_rest(Action):

```
 def name(self) -> Text:

     return "action_search_rest"

 def run(self, dispatcher: CollectingDispatcher,

         tracker: Tracker,

         domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

         entities = Tracker.latest_message.get('entities')

         print(entities)

         for e in entities:

             if e['entity'] == 'hotel':

                 name=e['value']

             if name =='indian':

                 message = "Gateway,sweet Magic"

             if name == 'chinese':

                 message = 'chin1 , chin2'

             if name == 'italian':

                 message="itl1 , itl2"  

             if name == "american":

                 message="ame1 , ame2"  

         dispatcher.utter_message(text=message)

         return []
```

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 22, 2020, 1:36pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/6 "2020-06-22T13:36:27Z")

</div>

> [@nagababu](#):
>
> `Tracker.latest_message.get('entities')`

yes, Thats needs to be changed to small ‘t’ `tracker`

---

<div class="post-metadata">

**Author:** ![nagababu](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nagababu](https://forum.rasa.com/u/nagababu)\
**Post date:** [June 22, 2020, 1:49pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/7 "2020-06-22T13:49:56Z")

</div>

Thank you .now there is no error but i am getting timeout exception shown below Task exception was never retrieved future: \<Task finished coro=\<configure\_app..run\_cmdline\_io() done, defined at c:\users\lenovo\appdata\local\programs\python\python37\lib\site-packages\rasa\core\run.py:128\> exception=TimeoutError()\>

---

<div class="post-metadata">

**Author:** ![MuraliChandran14](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/muralichandran14/32/9120_2.png) [@MuraliChandran14](https://forum.rasa.com/u/MuraliChandran14)\
**Post date:** [June 22, 2020, 2:00pm UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/8 "2020-06-22T14:00:56Z")

</div>

> [@nagababu](#):
>
> Task exception was never retrieved future: \<Task finished coro=\<configure\_app…run\_cmdline\_io() done

Does your for loop is working fine, can you check?, If its working fine then

Install these requirements

```
google-auth==1.10.1 
prompt-toolkit==2.0.10 
questionary==1.4.0 
SQLAlchemy==1.3.12 
urllib3==1.25.7

```

I m not sure the requirements will do the job, But lets try and see! 🙂

---

<div class="post-metadata">

**Author:** ![nagababu](https://avatars.discourse-cdn.com/v4/letter/n/dfb087/32.png) [@nagababu](https://forum.rasa.com/u/nagababu)\
**Post date:** [June 23, 2020, 5:03am UTC](https://forum.rasa.com/t/getting-error-while-running-the-action-server/30496/9 "2020-06-23T05:03:04Z")

</div>

Thank you so much it’s working now. i already have these packages with the below versions google-auth==1.17.2 prompt-toolkit==2.0.10 questionary==1.5.2 SQLAlchemy==1.3.12 i am unable to install the following packages can u please help me with this urllib3==1.25.7
