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
Describe the bug
Errors are logged in the django log if a users username includes a - character
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 254, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/local/lib/python3.10/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/routing.py", line 71, in __call__
return await application(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/security/websocket.py", line 37, in __call__
return await self.application(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/sessions.py", line 47, in __call__
return await self.inner(dict(scope, cookies=cookies), receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/sessions.py", line 263, in __call__
return await self.inner(wrapper.scope, receive, wrapper.send)
File "/usr/local/lib/python3.10/site-packages/channels/auth.py", line 185, in __call__
return await super().__call__(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/middleware.py", line 26, in __call__
return await self.inner(scope, receive, send)
File "/usr/local/lib/python3.10/site-packages/channels/routing.py", line 168, in __call__
raise ValueError("No route found for path %r." % path)
ValueError: No route found for path 'ws/users/test-user/'.
To Reproduce
Steps to reproduce the behavior:
Create a user incliding a - in their username
Login with this user
Observe the errors in the django log
Expected Behavior
Cleanly handle this username
The text was updated successfully, but these errors were encountered:
Going forward, usernames will be hex-encoded to ensure any characters JavaScript may have a problem with are removed. This will be fixed in the next release. Thanks for letting us know!
Describe the bug
Errors are logged in the django log if a users username includes a
-
characterTo Reproduce
Steps to reproduce the behavior:
-
in their usernameExpected Behavior
Cleanly handle this username
The text was updated successfully, but these errors were encountered: