WebSocket /api/v1/activity 403
Steps to reproduce
- Install funkwhale 0.20.1 using docker
docker-compose up -d
What happens?
This keep spamming in logs:
[2020-01-30 17:37:22 +0000] [391] [INFO] ('172.25.0.1', 0) - "WebSocket /api/v1/activity" 403
2020-01-30 17:37:22,219 uvicorn.error INFO ('172.25.0.1', 0) - "WebSocket /api/v1/activity" 403
[2020-01-30 17:37:22 +0000] [391] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 153, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.6/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.6/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.6/site-packages/channels/utils.py", line 59, in await_many_dispatch
await task
File "/usr/lib/python3.6/site-packages/channels/utils.py", line 51, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.6/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 233, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.6/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.6/asyncio/tasks.py", line 311, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.6/asyncio/tasks.py", line 311, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.6/asyncio/tasks.py", line 526, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
2020-01-30 17:37:22,222 uvicorn.error ERROR Exception in ASGI application
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 153, in run_asgi
result = await self.app(self.scope, self.asgi_receive, self.asgi_send)
File "/usr/lib/python3.6/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
return await self.app(scope, receive, send)
File "/usr/lib/python3.6/site-packages/uvicorn/middleware/asgi2.py", line 7, in __call__
await instance(receive, send)
File "/usr/lib/python3.6/site-packages/channels/consumer.py", line 59, in __call__
[receive, self.channel_receive], self.dispatch
File "/usr/lib/python3.6/site-packages/channels/utils.py", line 59, in await_many_dispatch
await task
File "/usr/lib/python3.6/site-packages/channels/utils.py", line 51, in await_many_dispatch
result = task.result()
File "/usr/lib/python3.6/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 233, in asgi_receive
data = await self.recv()
File "/usr/lib/python3.6/site-packages/websockets/protocol.py", line 495, in recv
return_when=asyncio.FIRST_COMPLETED,
File "/usr/lib/python3.6/asyncio/tasks.py", line 311, in wait
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.6/asyncio/tasks.py", line 311, in <setcomp>
fs = {ensure_future(f, loop=loop) for f in set(fs)}
File "/usr/lib/python3.6/asyncio/tasks.py", line 526, in ensure_future
raise TypeError('An asyncio.Future, a coroutine or an awaitable is '
TypeError: An asyncio.Future, a coroutine or an awaitable is required
But everything seems normal, and you can visit http://example.com/api/v1/activity
.
What is expected?
um, normal?
Context
Funkwhale version(s) affected: 0.20.1
- Instance configuration: Docker w/ nginx
docker-compose.yml
:
version: "3"
services:
funkwhale:
image: funkwhale/all-in-one:0.20.1
container_name: funkwhale
environment:
PUID: ${UID}
PGID: ${GID}
env_file:
- /srv/funkwhale/.env
ports:
- "5000:80"
volumes:
- /srv/funkwhale/data:/data
restart: always
Also, is this related?