Formbot Tutorial - Cuisine condition else does not return dispatcher.utter_template

Hello,

I am implementing a FormAction based on formbot and whenever I enter an invalid cuisine type ResturantForm never falls in the else of def validate_cuisine and ends up returning: utter_default: - text: "sorry, I didn’t understand you, please try input something else" instead of utter_wrong_cuisine: - text: "cuisine type is not in the database, please try again"

# USED FOR DOCS: do not rename without updating in docs
    def validate_cuisine(
        self,
        value: Text,
        dispatcher: CollectingDispatcher,
        tracker: Tracker,
        domain: Dict[Text, Any],
    ) -> Dict[Text, Any]:
        """Validate cuisine value."""

        if value.lower() in self.cuisine_db():
            # validation succeeded, set the value of the "cuisine" slot to value
            return {"cuisine": value}
        else:
            dispatcher.utter_template("utter_wrong_cuisine", tracker)
            # validation failed, set this slot to None, meaning the
            # user will be asked for the slot again
            return {"cuisine": None}

Rasa debug:

    requested_slot: cuisine
2019-11-14 20:11:48 DEBUG    rasa.core.policies.fallback  - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
2019-11-14 20:11:48 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'intent_request_restaurant': 1.0}]
2019-11-14 20:11:48 DEBUG    rasa.core.policies.memoization  - There is a memorised next action '14'
2019-11-14 20:11:48 DEBUG    rasa.core.policies.form_policy  - There is an active form 'restaurant_form'
2019-11-14 20:11:48 DEBUG    rasa.core.policies.mapping_policy  - There is no mapped action for the predicted intent, 'request_restaurant'.
2019-11-14 20:11:48 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_2_FormPolicy
2019-11-14 20:11:48 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 1.00.
2019-11-14 20:11:48 DEBUG    rasa.core.processor  - Action 'action_listen' ended with events '[]'
2019-11-14 20:11:48 DEBUG    rasa.core.lock_store  - Deleted lock for conversation '556198002191'.
2019-11-14 20:11:54 DEBUG    rasa.core.tracker_store  - Recreating tracker for id '556198002191'
2019-11-14 20:11:54 WARNING  root  - Could not parse timestamp cceafb5139674256ad44b5034c31ab92. Instead current UTC time will be passed to duckling. Error: invalid literal for int() with base 10: 'cceafb5139674256ad44b5034c31ab92'
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Received user message 'Brasileira' with intent '{'name': None, 'confidence': 0.0}' and entities '[]'
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Logged UserUtterance - tracker now has 22 events
2019-11-14 20:11:54 DEBUG    rasa.core.policies.fallback  - NLU confidence 0.0 is lower than NLU threshold 0.30.
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'intent_request_restaurant': 1.0}]
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - There is a memorised next action '14'
2019-11-14 20:11:54 DEBUG    rasa.core.policies.form_policy  - There is an active form 'restaurant_form'
2019-11-14 20:11:54 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_2_FormPolicy
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Predicted next action 'restaurant_form' with confidence 1.00.
2019-11-14 20:11:54 DEBUG    rasa.core.actions.action  - Calling action endpoint to run action 'restaurant_form'.
2019-11-14 20:11:54 ERROR    rasa.core.actions.action  - Failed to extract slot cuisine with action restaurant_form
2019-11-14 20:11:54 DEBUG    rasa.core.policies.fallback  - NLU confidence 0.0 is lower than NLU threshold 0.30.
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - Current tracker state [{'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'intent_request_restaurant': 1.0}, {'intent_request_restaurant': 1.0, 'prev_restaurant_form': 1.0, 'active_form_restaurant_form': 1.0}, {'prev_action_listen': 1.0, 'active_form_restaurant_form': 1.0}]
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - There is no memorised next action
2019-11-14 20:11:54 DEBUG    rasa.core.policies.form_policy  - There is an active form 'restaurant_form'
2019-11-14 20:11:54 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_0_FallbackPolicy
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Predicted next action 'action_default_fallback' with confidence 1.00.
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Action 'action_default_fallback' ended with events '['BotUttered(text: sorry, I didn\'t understand you, please try input something else, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})', 'UserUtteranceReverted()']'
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Current slot values:
    cuisine: None
    feedback: None
    num_people: None
    outdoor_seating: None
    preferences: None
    requested_slot: cuisine
2019-11-14 20:11:54 DEBUG    rasa.core.policies.fallback  - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_utter_greet': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'intent_request_restaurant': 1.0}]
2019-11-14 20:11:54 DEBUG    rasa.core.policies.memoization  - There is a memorised next action '14'
2019-11-14 20:11:54 DEBUG    rasa.core.policies.form_policy  - There is an active form 'restaurant_form'
2019-11-14 20:11:54 DEBUG    rasa.core.policies.mapping_policy  - There is no mapped action for the predicted intent, 'request_restaurant'.
2019-11-14 20:11:54 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_2_FormPolicy
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 1.00.
2019-11-14 20:11:54 DEBUG    rasa.core.processor  - Action 'action_listen' ended with events '[]'
2019-11-14 20:11:54 DEBUG    rasa.core.lock_store  - Deleted lock for conversation '556198002191'.

It was my mistake

tell me where is mistake u done, i’m also on same problem