You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In sanic 22.12.0 they changed the internal structure of app's middleware collections (request_middleware, response_middleware)
Look at this commit: sanic-org/sanic@2abe66b
Now they don't store pure middleware functions there but instead they use Middleware class for each of them.
It still works somehow but looks like middleware order is broken and other unpredictable bugs may occur.
In sanic 22.12.0 they changed the internal structure of app's middleware collections (request_middleware, response_middleware)
Look at this commit: sanic-org/sanic@2abe66b
Now they don't store pure middleware functions there but instead they use Middleware class for each of them.
It still works somehow but looks like middleware order is broken and other unpredictable bugs may occur.
Why don't you just use register_middleware method as suggested in docs? (https://sanic.dev/en/guide/basics/middleware.html#attaching-middleware)
The text was updated successfully, but these errors were encountered: