Skip to content

Instantly share code, notes, and snippets.

@axilaris
Created March 28, 2024 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save axilaris/8ab94eb4bd9f480ba685dc930db6d303 to your computer and use it in GitHub Desktop.
Save axilaris/8ab94eb4bd9f480ba685dc930db6d303 to your computer and use it in GitHub Desktop.
App.js:79 WebSocket connection to 'ws://localhost:8000/ws/notifications/' failed: WebSocket is closed before the connection is established.
App.js:71 WebSocket error Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
App.js:75 WebSocket closed CloseEvent {isTrusted: true, wasClean: false, code: 1006, reason: '', type: 'close', …}
App.js:62 Connected to notification websocket
System check identified 1 issue (0 silenced).
March 28, 2024 - 09:24:21
Django version 4.1.5, using settings 'backend.settings'
Starting ASGI/Daphne version 4.1.0 development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
WebSocket HANDSHAKING /ws/notifications/ [127.0.0.1:50764]
INFO:django.channels.server:WebSocket HANDSHAKING /ws/notifications/ [127.0.0.1:50764]
WebSocket DISCONNECT /ws/notifications/ [127.0.0.1:50764]
INFO:django.channels.server:WebSocket DISCONNECT /ws/notifications/ [127.0.0.1:50764]
XXX connect
WebSocket HANDSHAKING /ws/notifications/ [127.0.0.1:50768]
INFO:django.channels.server:WebSocket HANDSHAKING /ws/notifications/ [127.0.0.1:50768]
XXX disconnect
XXX connect
WebSocket CONNECT /ws/notifications/ [127.0.0.1:50768]
INFO:django.channels.server:WebSocket CONNECT /ws/notifications/ [127.0.0.1:50768]
ERROR:daphne.server:Exception inside application: No application configured for scope type 'http'
Traceback (most recent call last):
File "/Users/axilaris/Documents/project/a/backendvirtualenv/lib/python3.11/site-packages/django/contrib/staticfiles/handlers.py", line 101, in __call__
return await self.application(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/axilaris/Documents/project/a/backendvirtualenv/lib/python3.11/site-packages/channels/routing.py", line 64, in __call__
raise ValueError(
ValueError: No application configured for scope type 'http'
HTTP GET /api/user 500 [1.00, 127.0.0.1:50762]
ERROR:django.channels.server:HTTP GET /api/user 500 [1.00, 127.0.0.1:50762]
ERROR:daphne.server:Exception inside application: No application configured for scope type 'http'
Traceback (most recent call last):
File "/Users/axilaris/Documents/project/a/backendvirtualenv/lib/python3.11/site-packages/django/contrib/staticfiles/handlers.py", line 101, in __call__
return await self.application(scope, receive, send)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/axilaris/Documents/project/a/backendvirtualenv/lib/python3.11/site-packages/channels/routing.py", line 64, in __call__
raise ValueError(
ValueError: No application configured for scope type 'http'
HTTP GET /api/user 500 [1.00, 127.0.0.1:50762]
ERROR:django.channels.server:HTTP GET /api/user 500 [1.00, 127.0.0.1:50762]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment