diff --git a/changelog/1120.misc.md b/changelog/1120.misc.md new file mode 100644 index 000000000..82d2414f4 --- /dev/null +++ b/changelog/1120.misc.md @@ -0,0 +1 @@ +Reset Sanic warnings filter to prevent the triggering of Sanic warnings. \ No newline at end of file diff --git a/rasa_sdk/endpoint.py b/rasa_sdk/endpoint.py index a310ebe07..93d2e46be 100644 --- a/rasa_sdk/endpoint.py +++ b/rasa_sdk/endpoint.py @@ -114,6 +114,9 @@ def create_app( """ app = Sanic("rasa_sdk", configure_logging=False) + # Reset Sanic warnings filter that allows the triggering of Sanic warnings + warnings.filterwarnings("ignore", category=DeprecationWarning, module=r"sanic.*") + configure_cors(app, cors_origins) executor = ActionExecutor()