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
I'm not sure on how this should behave for websocket requests, I fix it for now be removing the "websocket" scope from the middleware scopes but this is a local workaround.
The asgi scope definition for "websocket" requests does not contain a "method" entry (cf https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope). The BaseMiddleware from asgi-tools calls
__process__
ifscope in ("http", "websocket")
(default, overridable at class level).Thus this causes an exception for all websocket requests:
asgi-prometheus/asgi_prometheus/__init__.py
Line 70 in 630e0f7
I'm not sure on how this should behave for websocket requests, I fix it for now be removing the "websocket" scope from the middleware scopes but this is a local workaround.
The text was updated successfully, but these errors were encountered: