# Received an action call without an action - RASA Custom action, Post Request

**URL:** <https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919>\
**Category:** Rasa Open Source\
**Created:** [November 5, 2019, 12:37pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919 "2019-11-05T12:37:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![adityajohar](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@adityajohar](https://forum.rasa.com/u/adityajohar)\
**Post date:** [November 5, 2019, 12:37pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/1 "2019-11-05T12:37:37Z")

</div>

Hello, I am receiving the error that “Received a call without an action” and my custom action is not dispatching the message to my bot…

In domain.yml:

//////////////////////////////////////

actions:

- utter\_greet
- action\_main

//////////////////////////////////////

In actions.py: ////////////////////////////////////// from rasa\_sdk import Action from rasa\_sdk.events import SlotSet from datetime import datetime from crontab import CronTab import schedule import time

class ActionMain(Action):

```
def name(self):
    return "action_main"

def run(self, dispatcher, tracker, domain):
    
    dispatcher.utter_message("Our chatbot is live")

    return []

```

//////////////////////////////////////

Post request: import requests

import json

url = ‘[http://localhost:5055/webhook](http://localhost:5055/webhook)’

#url = “[http://localhost:5055/conversations/default/execute](http://localhost:5055/conversations/default/execute)”

headers = {‘Content-type’: ‘application/json’}

dx = json.dumps({“name”: “action\_main”})

requests.post(url, data=dx, headers=headers)

//////////////////////////////////////////////////////////////

However when I do the post request my rasa server says:

2019-11-05 18:01:41 **WARNING** rasa\_sdk.endpoint - You are using an old version of rasa which might not be compatible with this version of rasa\_sdk (1.4.0).

To ensure compatibility use the same version for both, modulo the last number, i.e. using version A.B.x the numbers A and B should be identical for both rasa and rasa\_sdk.

2019-11-05 18:01:41 **WARNING** rasa\_sdk.executor - Received an action call without an action.

127.0.0.1 - - [2019-11-05 18:01:41] “POST /webhook HTTP/1.1” 200 144 0.001549 ////////////

Please help !

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [November 6, 2019, 2:35pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/2 "2019-11-06T14:35:24Z")

</div>

Is the action in your domain?

In your code `#url = “http://localhost:5055/conversations/default/execute”` is commented out, but that should be the url you want to use. Which rasa version are you using? Any logs from rasa which might give any insights?

---

<div class="post-metadata">

**Author:** ![adityajohar](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@adityajohar](https://forum.rasa.com/u/adityajohar)\
**Post date:** [November 7, 2019, 7:43pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/3 "2019-11-07T19:43:43Z")

</div>

Hey Tobias, I ran an issue on this on Github and got it fixed after working with Ella. You are right about the domain - also, the domain wont run if we are using “rasa shell”, we need to use rasa x or another front end.

However, any idea on how to send bot initiated messages? Or not perform action\_listen after a particular story/period of time? As I’m now able to call the POST request but the bot doesn’t send a message because its on action\_listen…

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [November 8, 2019, 3:15pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/4 "2019-11-08T15:15:04Z")

</div>

> [@adityajohar](#):
>
> also, the domain wont run if we are using “rasa shell”,

What do you mean by that?

> However, any idea on how to send bot initiated messages?

Have you seen this docs page [Actions](https://rasa.com/docs/rasa/core/actions/#proactively-reaching-out-to-the-user-using-actions) ?

---

<div class="post-metadata">

**Author:** ![adityajohar](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@adityajohar](https://forum.rasa.com/u/adityajohar)\
**Post date:** [November 8, 2019, 6:16pm UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/5 "2019-11-08T18:16:12Z")

</div>

Well if we try to run /conversations/default/execute when we’re developing with the rasa shell activated, the endpoint wont execute - it’ll say there’s too many connections (max pooled). So I’ve switched over to rasa x, and now my endpoint works.

I have successfully incorporated Custom actions (have read the link you’ve shared extensively), but my bot never initiates a conversation on the chat because it’s always on the “action\_listen” mode - which means any action where I dispatch a message never gets executed. That’s what I’ve been trying to accomplish !

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [November 11, 2019, 11:28am UTC](https://forum.rasa.com/t/received-an-action-call-without-an-action-rasa-custom-action-post-request/20919/6 "2019-11-11T11:28:07Z")

</div>

> Well if we try to run /conversations/default/execute when we’re developing with the rasa shell activated, the endpoint wont execute - it’ll say there’s too many connections (max pooled). So I’ve switched over to rasa x, and now my endpoint works.

Mhm, which rasa version are you running?

> I have successfully incorporated Custom actions (have read the link you’ve shared extensively), but my bot never initiates a conversation on the chat because it’s always on the “action\_listen” mode

So there was no prior user interaction? What does the action which you execute do?
