Closed ancs21 closed 6 months ago
@ancs21 I actually think this is a strawberry issue.
It seems that their channels implementation expects the subprotocol
key to be in scope here https://github.com/strawberry-graphql/strawberry/blob/0.219.2/strawberry/channels/handlers/ws_handler.py#L77, but ASGI ref defines that key as optional, see https://asgi.readthedocs.io/en/latest/specs/www.html#websocket-connection-scope.
Maybe you can open an issue on strawberry repo and mention this one as the starting point.
@ancs21 I saw the reply in https://github.com/strawberry-graphql/strawberry/issues/3386, I just opened #228, as even if strawberry solves the issue, their implementation won't probably work with Granian due to the lack of subprotocols support.
Closing this.
I get error setup with Django Channels