WIth sanic 21 i gt a few warning like this whne starting:
sanic/base.py:35: UserWarning: Setting variables on Sanic instances is deprecated and will be removed in version 21.9. You should change your Sanic instance to use instance.ctx.handle_request instead.
sanic/base.py:35: UserWarning: Setting variables on Sanic instances is deprecated and will be removed in version 21.9. You should change your Sanic instance to use instance.ctx._run_request_middleware instead.
sanic/base.py:35: UserWarning: Setting variables on Sanic instances is deprecated and will be removed in version 21.9. You should change your Sanic instance to use instance.ctx._run_response_middleware instead.
those message repeat once and i couldn’t see any changed behavour in the app.
I use one middleware fore response and request each, but the same messages show up when those methods are commented out.
As i don’t have a stacktrace i can’t offer more insight here.
Do i trigger some old leftover code in sanic with my app init code which was made for sanic 20?