# Cannot specify endpoints while using rasa\_core.run

**URL:** <https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297>\
**Category:** Rasa Open Source\
**Created:** [January 14, 2019, 4:56am UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297 "2019-01-14T04:56:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubham21197](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@shubham21197](https://forum.rasa.com/u/shubham21197)\
**Post date:** [January 14, 2019, 4:56am UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297/1 "2019-01-14T04:56:31Z")

</div>

I am running my model using the command:

```
python -m rasa_core.run -d models/dialogue -u models\default\model_20190110-113631 --port 5004 --credentials credentials.yml

```

Which runs and works flawlessly. I can POST messages and get responses. But when I try to specify action endpoints for custom actions using `--endpoints endpoints.yml` I get the following error in rasa\_core/utils.py

```
  File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\rasaenv\lib\site-packages\rasa_core\utils.py", line 752, in from_dict
    return EndpointConfig(**data)
TypeError: type object argument after ** must be a mapping, not NoneType

```

I’m on the latest version of rasa\_core: 0.12.4

EDIT: Solved it. There was was weird indentation in my endpoints.yml. Feel silly now

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 14, 2019, 5:03am UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297/2 "2019-01-14T05:03:41Z")

</div>

can you share your endpoints file? and your custom action file? There is some argument error you might have made in custom action.

---

<div class="post-metadata">

**Author:** ![Akshit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akshit/32/1431_2.png) [@Akshit](https://forum.rasa.com/u/Akshit)\
**Post date:** [January 14, 2019, 5:05am UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297/3 "2019-01-14T05:05:17Z")

</div>

You are running the custom action server right? with this command:

python -m rasa\_core\_sdk.endpoint --actions actions.py

---

<div class="post-metadata">

**Author:** ![shubham21197](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@shubham21197](https://forum.rasa.com/u/shubham21197)\
**Post date:** [January 14, 2019, 5:26am UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297/4 "2019-01-14T05:26:05Z")

</div>

My endpoints.yml had some weird indentation fault. Using tabs fixed it. 😅

---

<div class="post-metadata">

**Author:** ![jonathanpwheat](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/jonathanpwheat/32/4880_2.png) [@jonathanpwheat](https://forum.rasa.com/u/jonathanpwheat)\
**Post date:** [December 3, 2019, 2:18pm UTC](https://forum.rasa.com/t/cannot-specify-endpoints-while-using-rasa-core-run/4297/5 "2019-12-03T14:18:02Z")

</div>

> [@shubham21197](#):
>
> –endpoints endpoints.yml

Thanks for posting your solution!!! I was getting this this morning on our production server and couldn’t figure it out. I had swapped the production action server endpoint (un-commented it) and there was NO indent at all. Ugh. Was chasing my tail until I decided to search here 🙂
