tiziano
(Tiziano Labruna)
February 24, 2020, 1:05pm
1
Hi,
I’m trying to cancel a reminder I created, but I can’t.
With reference to this guide , I first created the reminder, like that:
ReminderScheduled("utter_treatment_finished", new_dt_end, kill_on_user_message=False, name="treatment_finished")
And then tried to cancel it like that:
ReminderCancelled(name="treatment_finished")
and also tried only with the name:
ReminderCancelled("treatment_finished")
In both cases, my reminder is still displaying as if the ReminderCancelled was not there.
@akelad , @Ghostvv I saw you handled this type of issue before… can you help me?
tiziano
(Tiziano Labruna)
February 24, 2020, 2:03pm
2
If I try to cancel all reminders with ReminderCancelled()
(according to what it says in the guide), I get this error:
Exception occurred while handling uri: 'http://action_server:5055/webhook'
action_server_1 | Traceback (most recent call last):
action_server_1 | File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 942, in handle_request
action_server_1 | response = await response
action_server_1 | File "/app/rasa_sdk/endpoint.py", line 86, in webhook
action_server_1 | result = await executor.run(action_call)
action_server_1 | File "/app/rasa_sdk/executor.py", line 280, in run
action_server_1 | events = action(dispatcher, tracker, domain)
action_server_1 | File "/app/rasa_sdk/forms.py", line 532, in run
action_server_1 | events.extend(self.submit(dispatcher, temp_tracker, domain))
action_server_1 | File "/app/actions/actions.py", line 90, in submit
action_server_1 | return [SlotSet("confirm_inside", None), SlotSet("dt_pause", now), ReminderCancelled()]
action_server_1 | TypeError: ReminderCancelled() missing 1 required positional argument: 'action_name'
rasa-production_1 | 2020-02-24 14:01:59 ERROR rasa.core.processor - Encountered an exception while running action 'go_inside_form'. Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
rasa-production_1 | 2020-02-24 14:01:59 DEBUG rasa.core.processor - Failed to execute custom action.
tiziano
(Tiziano Labruna)
February 24, 2020, 2:41pm
3
Ok I found a workaround: ReminderCancelled("utter_treatment_finished", name="treatment_finished")
seems to work.
I don’t understand why I need to specify an action name though… isn’t the name of the reminder I want to cancel enough?
Which Rasa Open Source and Rasa SDK versions are you using ? We recommend to trigger & cancel reminders with intents since version 1.7 (we also updated the docs) Events
tiziano
(Tiziano Labruna)
February 25, 2020, 9:54am
5
Hi, I’m actually using version 1.7