if I start the game, the game stops and throws a connection error:
[2019/07/15 15:09:07] HTTP POST /auth/login/ 200 [0.43, 127.0.0.1:39560]
[2019/07/15 15:09:07] WebSocket HANDSHAKING /game/ [127.0.0.1:39594]
[2019/07/15 15:09:07] WebSocket CONNECT /game/ [127.0.0.1:39594]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.02, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
[2019/07/15 15:09:07] HTTP GET /game/load/ 200 [0.01, 127.0.0.1:39560]
2019-07-15 15:09:07,876 - ERROR - server - Exception inside application: [Errno 111] Connect call failed ('127.0.0.1', 6379)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/sessions.py", line 175, in call
return await self.inner(receive, self.send)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/middleware.py", line 41, in coroutine_call
await inner_instance(receive, send)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/consumer.py", line 54, in call
await await_many_dispatch([receive, self.channel_receive], self.dispatch)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels/utils.py", line 57, in await_many_dispatch
await task
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 377, in receive
message_channel, message = await self.receive_single(real_channel)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 427, in receive_single
content = await self._brpop_with_clean(index, channel_key, timeout=self.brpop_timeout)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 282, in _brpop_with_clean
async with self.connection(index) as connection:
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 742, in aenter
self.conn = await self.pool.pop()
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/channels_redis/core.py", line 49, in pop
conns.append(await aioredis.create_redis(**self.host, loop=loop))
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/commands/init.py", line 177, in create_redis
loop=loop)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/connection.py", line 107, in create_connection
timeout, loop=loop)
File "/usr/lib/python3.6/asyncio/tasks.py", line 339, in wait_for
return (yield from fut)
File "/home/steanly/Dokumenty/mmorpg/venv/lib/python3.6/site-packages/aioredis/stream.py", line 19, in open_connection
lambda: protocol, host, port, **kwds)
File "/usr/lib/python3.6/asyncio/base_events.py", line 794, in create_connection
raise exceptions[0]
File "/usr/lib/python3.6/asyncio/base_events.py", line 781, in create_connection
yield from self.sock_connect(sock, address)
File "/usr/lib/python3.6/asyncio/selector_events.py", line 439, in sock_connect
return (yield from fut)
File "/usr/lib/python3.6/asyncio/selector_events.py", line 469, in _sock_connect_cb
raise OSError(err, 'Connect call failed %s' % (address,))
[Errno 111] Connect call failed ('127.0.0.1', 6379)
[2019/07/15 15:09:07] WebSocket DISCONNECT /game/ [127.0.0.1:39594]
[2019/07/15 15:09:12] WebSocket HANDSHAKING /game/ [127.0.0.1:39602]
[2019/07/15 15:09:12] WebSocket CONNECT /game/ [127.0.0.1:39602]
the game works for about 2 seconds and this error is over and over again