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 related news, the Django router also stopped setting script_prefix from scope root_path two months ago. This is not Channels' problem, but might be relevant to anyone searching on this bug.
A workaround is attached to this bug report: https://code.djangoproject.com/ticket/35169#comment:11
It seems to me that here: https://github.com/django/channels/blob/main/channels/routing.py#L100
URLRouter should strip the
scope['root_path']
from the submitted path for matching against paths.Django does this for path matching.
Workaround
Manually add the configured asgi root_path to the head of all paths submitted to the UrlRouter().
e.g.
The text was updated successfully, but these errors were encountered: