Open unkn0wn107 opened 2 months ago
auth-1 | File "/venv/lib/python3.9/site-packages/channels/routing.py", line 62, in call
auth-1 | return await application(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/sessions.py", line 47, in call
auth-1 | return await self.inner(dict(scope, cookies=cookies), receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/sessions.py", line 263, in call
auth-1 | return await self.inner(wrapper.scope, receive, wrapper.send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/auth.py", line 185, in call
auth-1 | return await super().call(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/middleware.py", line 24, in call
auth-1 | return await self.inner(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/routing.py", line 132, in call
auth-1 | return await application(
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 94, in app
auth-1 | return await consumer(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 58, in call
auth-1 | await await_many_dispatch(
auth-1 | File "/venv/lib/python3.9/site-packages/channels/utils.py", line 50, in await_many_dispatch
auth-1 | await dispatch(result)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 73, in dispatch
auth-1 | await handler(message)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 179, in websocket_connect
auth-1 | await self.connect()
auth-1 | File "/app/./chat/consumers.py", line 26, in connect
auth-1 | await self.set_user_online()
auth-1 | File "/venv/lib/python3.9/site-packages/asgiref/sync.py", line 468, in call
auth-1 | ret = await asyncio.shield(exec_coro)
auth-1 | File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
auth-1 | result = self.fn(*self.args, **self.kwargs)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/db.py", line 13, in thread_handler
auth-1 | return super().thread_handler(loop, *args, **kwargs)
auth-1 | File "/venv/lib/python3.9/site-packages/asgiref/sync.py", line 522, in thread_handler
auth-1 | return func(*args, **kwargs)
auth-1 | File "/app/./chat/consumers.py", line 57, in set_user_online
auth-1 | self.user.save()
auth-1 | File "/venv/lib/python3.9/site-packages/django/contrib/auth/models.py", line 443, in save
auth-1 | raise NotImplementedError(
auth-1 | NotImplementedError: Django doesn't provide a DB representation for AnonymousUser.
auth-1 | File "/venv/lib/python3.9/site-packages/channels/routing.py", line 62, in call
auth-1 | return await application(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/sessions.py", line 47, in call
auth-1 | return await self.inner(dict(scope, cookies=cookies), receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/sessions.py", line 263, in call
auth-1 | return await self.inner(wrapper.scope, receive, wrapper.send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/auth.py", line 185, in call
auth-1 | return await super().call(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/middleware.py", line 24, in call
auth-1 | return await self.inner(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/routing.py", line 132, in call
auth-1 | return await application(
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 94, in app
auth-1 | return await consumer(scope, receive, send)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 58, in call
auth-1 | await await_many_dispatch(
auth-1 | File "/venv/lib/python3.9/site-packages/channels/utils.py", line 50, in await_many_dispatch
auth-1 | await dispatch(result)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/consumer.py", line 73, in dispatch
auth-1 | await handler(message)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/generic/websocket.py", line 179, in websocket_connect
auth-1 | await self.connect()
auth-1 | File "/app/./chat/consumers.py", line 26, in connect
auth-1 | await self.set_user_online()
auth-1 | File "/venv/lib/python3.9/site-packages/asgiref/sync.py", line 468, in call
auth-1 | ret = await asyncio.shield(exec_coro)
auth-1 | File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
auth-1 | result = self.fn(*self.args, **self.kwargs)
auth-1 | File "/venv/lib/python3.9/site-packages/channels/db.py", line 13, in thread_handler
auth-1 | return super().thread_handler(loop, *args, **kwargs)
auth-1 | File "/venv/lib/python3.9/site-packages/asgiref/sync.py", line 522, in thread_handler
auth-1 | return func(*args, **kwargs)
auth-1 | File "/app/./chat/consumers.py", line 57, in set_user_online
auth-1 | self.user.save()
auth-1 | File "/venv/lib/python3.9/site-packages/django/contrib/auth/models.py", line 443, in save
auth-1 | raise NotImplementedError(
auth-1 | NotImplementedError: Django doesn't provide a DB representation for AnonymousUser.