# How to fix "Encountered an exception while running custom action"

**URL:** <https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025>\
**Category:** Rasa Open Source\
**Created:** [June 25, 2019, 9:28am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025 "2019-06-25T09:28:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vyshnavi-R](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vyshnavi-R](https://forum.rasa.com/u/Vyshnavi-R)\
**Post date:** [June 25, 2019, 9:28am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/1 "2019-06-25T09:28:22Z")

</div>

my custom action “action\_book\_room” is not being executed when the corresponding intent is identified.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/4abd9b73856a807b88cda6617a9ea4c49f6528e4.png)error :Encountered an exception while running action ‘action\_book\_room’. There is no error even in the action server ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e761946eef113d4ca9305562c45d6d5fb76338c5.png) **strong text**

this is the " action\_book\_room " code:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/387dd681187752122e0ffeb4d8868f868b43d038.png)

---

<div class="post-metadata">

**Author:** ![gcgloven](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/gcgloven/32/3915_2.png) [@gcgloven](https://forum.rasa.com/u/gcgloven)\
**Post date:** [June 25, 2019, 10:13am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/2 "2019-06-25T10:13:55Z")

</div>

Check 3 things

```
pip install rasa-sdk
pip install rasa # sometime you may mix up the dependecy because you wanna install a new set of lib for other program

```

now, to run action, could you key in

`rasa run actions -vv`

this is debug mode, then you can post your rasa-core log file here for us to review.

---

<div class="post-metadata">

**Author:** ![Vyshnavi-R](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vyshnavi-R](https://forum.rasa.com/u/Vyshnavi-R)\
**Post date:** [June 25, 2019, 10:53am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/3 "2019-06-25T10:53:13Z")

</div>

when i execute the pip commands for rasa and rasa-sdk i get “requirements already satisfied”.

I’m able to run " rasa shell" properly without that exception

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/562a7720bc0e4e5d0adc37a6a28c2a7dc1f34a3e.png)

but when i execute " rasa interactive" i get that issue. My rasa\_core.log is empty. ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/ad68c64b6dab98e4da0c0c93e1e25a393383bd3d.png)

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 25, 2019, 11:38am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/4 "2019-06-25T11:38:25Z")

</div>

Did you start the action server alongside the interactive shell?

---

<div class="post-metadata">

**Author:** ![Vyshnavi-R](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vyshnavi-R](https://forum.rasa.com/u/Vyshnavi-R)\
**Post date:** [June 25, 2019, 11:54am UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/5 "2019-06-25T11:54:23Z")

</div>

yes, i have . neither there are logs in rasa\_core.log nor errors in action server

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a8e9431672abfa3cf25baeed074114a735416e56.png)

---

<div class="post-metadata">

**Author:** ![JulianGerhard](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juliangerhard/32/3781_2.png) [@JulianGerhard](https://forum.rasa.com/u/JulianGerhard)\
**Post date:** [June 25, 2019, 12:04pm UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/6 "2019-06-25T12:04:30Z")

</div>

Hi @Vyshnavi-R

you have to start the bot with:

`rasa interactive -m <model_path> --endpoints <endpoints.yml_path>`

Normally the bot would start with default paths but not in interactive mode.

Did that help?

Regards

---

<div class="post-metadata">

**Author:** ![Vyshnavi-R](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@Vyshnavi-R](https://forum.rasa.com/u/Vyshnavi-R)\
**Post date:** [June 25, 2019, 12:09pm UTC](https://forum.rasa.com/t/how-to-fix-encountered-an-exception-while-running-custom-action/12025/7 "2019-06-25T12:09:02Z")

</div>

great !! that worked, thanks 😊
