__run_response_middleware() error


File “c:\users\saprepc\appdata\local\programs\python\python37\lib\site-packages\sanic\app.py”, line 946, in handle_request request, request_name=name TypeError: _run_request_middleware() got an unexpected keyword argument ‘request_name’ 2019-12-30 17:48:37 ERROR sanic.error - Exception occurred in one of response middleware handlers

This error occurs when I perform "rasa x " after doing “rasa run actions”, which runs alright.

Python version : 3.7.3 Rasa version : 1.5.3 Sanic version : 19.12.0

Here is my actions.py file :

from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker

from rasa_sdk.executor import CollectingDispatcher

class ActionHelloWorld(Action):

def name(self) -> Text:

    return "action_hello_world"

def run(self, dispatcher: CollectingDispatcher,

        tracker: Tracker,

        domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

    dispatcher.utter_message(text="Hello World!")

    return []

This file is the default action file created by “rasa init”.