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’
#url = “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 !