I keep getting exception error in the last step of executing an action
Task exception was never retrieved
future: <Task finished coro=<configure_app..run_cmdline_io() done, defined at c:\users\crizma-technology\anaconda3\envs\rasa_envs\lib\site-packages\rasa\core\run.py:128> exception=TimeoutError()>
I am taking Sara assistant as an example so most probably my code is ok
rasa version is 1.10.1 and rasa-sdk==1.10.1
here’s the action code
class SalesForm(FormAction):
"""Collects sales information and adds it to the spreadsheet"""
def name(self):
return "sales_form"
@staticmethod
def required_slots(tracker):
return [
"job_function",
"use_case",
"budget",
"person_name",
"company",
"business_email",
]
def submit(
self,
dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any],
) -> List[Dict]:
#dispatcher.utter_message("Thanks for getting in touch, we’ll contact you soon")
budget = tracker.get_slot("budget")
company = tracker.get_slot("company")
email = tracker.get_slot("business_email")
job_function = tracker.get_slot("job_function")
person_name = tracker.get_slot("person_name")
use_case = tracker.get_slot("use_case")
sales_info = [budget, company, email, job_function, person_name, use_case]
dispatcher.utter_message(sales_info)
return []
Solved: it was an error in dispatcher.utter_message() it takes only string