# Exception: The model predicted the custom action 'action\_check\_status' but you didn't configure an endpoint to run this custom action

**URL:** <https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852>\
**Category:** Rasa Open Source\
**Created:** [October 13, 2018, 4:45pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852 "2018-10-13T16:45:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hd\_YYYYYYY](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@hd\_YYYYYYY](https://forum.rasa.com/u/hd_YYYYYYY)\
**Post date:** [October 13, 2018, 4:45pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/1 "2018-10-13T16:45:44Z")

</div>

**Rasa Core version** : rasa-core==0.11.11 rasa-core-sdk==0.11.5 rasa-nlu==0.13.6

**Python version** : 3.6.3

**Operating system** (windows, osx, …): Mac OSX 10.11.16

```auto
WARNING:rasa_core.agent:Passing a text to `agent.handle_message(...)` is deprecated. Rather use `agent.handle_text(...)`.
ERROR:rasa_core.processor:Encountered an exception while running action 'action_check_status'. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.
ERROR:rasa_core.processor:The model predicted the custom action 'action_check_status' but you didn't configure an endpoint to run this custom action. Please take a look at the docs and set an endpoint configuration. https://rasa.com/docs/core/customactions/
Traceback (most recent call last):
  File "/Users/DHarun/anaconda3/envs/x/lib/python3.6/site-packages/rasa_core/processor.py", line 338, in _run_action
    events = action.run(dispatcher, tracker, self.domain)
  File "/Users/DHarun/anaconda3/envs/x/lib/python3.6/site-packages/rasa_core/actions/action.py", line 305, in run
    "".format(self.name(), DOCS_BASE_URL))
Exception: The model predicted the custom action 'action_check_status' but you didn't configure an endpoint to run this custom action. Please take a look at the docs and set an endpoint configuration. https://rasa.com/docs/core/customactions/

```

**Content of domain file** (if used & relevant): endpoints.yml

```auto
action_endpoint:
url: "http://localhost:5055/webhook"

```

Info about server for custom actions:

```auto
$ python -m rasa_core_sdk.endpoint --actions actions
INFO: __main__ :Starting action endpoint server...
INFO:rasa_core_sdk.executor:Registered function for 'action_check_status'.
INFO: __main__ :Action endpoint is up and running. on ('0.0.0.0', 5055)

```

I use to develop rasa chatbot the anaconda environment. I have a virtuell environment form the anaconda nagivator, I create from this two terminals: first, start the server and the second to start the bot: `bot.py --endpoints endpoints.yml`

the code for the bot:

```auto
import logging, warnings
from rasa_nlu.training_data import load_data
from rasa_nlu.config import RasaNLUModelConfig
from rasa_nlu.model import Trainer
from rasa_core.policies.keras_policy import KerasPolicy
from rasa_core.agent import Agent

logging.basicConfig(level="INFO")
warnings.filterwarnings('ignore')

agent = Agent('domain.yml', policies=[KerasPolicy()])
training_data = agent.load_data('stories.md')
agent.train(
        training_data,
        validation_split=0.0,
        epochs=400
)

agent.persist('models/dialogue')

training_data = load_data('nlu.md')
pipeline = [{"name": "nlp_spacy"},
            {"name": "tokenizer_spacy"},
            {"name": "intent_featurizer_spacy"},
            {"name": "intent_classifier_sklearn"}]

trainer = Trainer(RasaNLUModelConfig({"pipeline": pipeline}))
interpreter = trainer.train(training_data)

model_directory = trainer.persist('./projects/default/')
agent = Agent.load('models/dialogue', interpreter=model_directory)

print("Your bot is ready to talk! Type your messages here or send 'stop'")
while True:
    a = input()
    if a == 'stop':
        break
    responses = agent.handle_message(a)
    for response in responses:
        print(response["text"])

```

I cant start the custom actions, how can I solve this issue? Thanks.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 16, 2018, 4:47pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/2 "2018-10-16T16:47:12Z")

</div>

If you’re running a script, you have to specify an `EndpointConfig` yourself. Take a look at the run script to see how

---

<div class="post-metadata">

**Author:** ![hd\_YYYYYYY](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@hd\_YYYYYYY](https://forum.rasa.com/u/hd_YYYYYYY)\
**Post date:** [October 16, 2018, 9:27pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/3 "2018-10-16T21:27:54Z")

</div>

> [@akelad](#):
>
> EndpointConfig

can you give pls more information about your suggestion? @akelad

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 18, 2018, 1:35pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/4 "2018-10-18T13:35:47Z")

</div>

[https://rasa.com/docs/core/customactions/#custom-actions](https://rasa.com/docs/core/customactions/#custom-actions)

---

<div class="post-metadata">

**Author:** ![netcarver](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/netcarver/32/1147_2.png) [@netcarver](https://forum.rasa.com/u/netcarver)\
**Post date:** [December 22, 2018, 8:40pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/5 "2018-12-22T20:40:53Z")

</div>

Hi hd\_YYYYYYY,

In addition to what akelad said, I think you might also have an error in your `endpoints.yml` file, which differs in a small, but important way, from the examples in the documentation.

You said that your file had this in it…

```auto
action_endpoint:
url: "..."

```

But the docs have it as…

```auto
action_endpoint:
  url: "..."

```

Note the indentation before the `url` mapping. In YAML this is important, as indentation defines scope. You can try out both of the examples in the [online YAML to JSON convertor](https://onlinejsontools.com/convert-yaml-to-json). You’ll see that the example you posted has `action_endpoint` and `url` as siblings, whereas the indented example from the documentation has the `url` as a child of the `action_endpoint`.

Hope that helps!

Steve

---

<div class="post-metadata">

**Author:** ![karthik1](https://avatars.discourse-cdn.com/v4/letter/k/bc8723/32.png) [@karthik1](https://forum.rasa.com/u/karthik1)\
**Post date:** [November 28, 2019, 3:35pm UTC](https://forum.rasa.com/t/exception-the-model-predicted-the-custom-action-action-check-status-but-you-didnt-configure-an-endpoint-to-run-this-custom-action/1852/6 "2019-11-28T15:35:13Z")

</div>

ERROR:rasa.core.processor:Encountered an exception while running action ‘my\_fallback\_action’. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.

action.py rom typing import Any, Text, Dict, List from rasa\_sdk import Action, Tracker from rasa\_sdk.executor import CollectingDispatcher

class ActionFallback(Action):

```
def name(self) -> Text:
    return "action_default_fallback"

def run(self, dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

    dispatcher.utter_default("I did not understand what your saying")

    return []

```

domain file:-

actions:

- action\_default\_fallback
- my\_fallback\_action
- utter\_default: utter\_default:
  - text: I did not understand can please say it once again.

please solve my issue
