osuAkatsuki / bancho.py

An osu! server for the generic public, optimized for maintainability in modern python
https://akatsuki.gg
MIT License
217 stars 131 forks source link

bug: osu direct cannot be used. #466

Closed mames1dev closed 1 year ago

mames1dev commented 1 year ago

Describe the bug

osu direct cannot be used.

To Reproduce

  1. open the osu direct panel
  2. you will get an error like the one in the log

Expected behavior

  1. open the osu direct panel
  2. you will get an error like the one in the log

bancho.py Version

4.8.1

Python Version

3.9.X (Default)

Relevant log output

File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 108, in __call__
    response = await self.dispatch_func(request, call_next)
  File "/root/bancho.py/app/api/middlewares.py", line 23, in dispatch
    response = await call_next(request)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 84, in call_next
    raise app_exc
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/middleware/base.py", line 70, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/routing.py", line 515, in handle
    await self.app(scope, receive, send)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/routing.py", line 706, in __call__
    await route.handle(scope, receive, send)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/starlette/routing.py", line 66, in app
    response = await func(request)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
    return await dependant.call(**values)
  File "/root/bancho.py/app/api/domains/osu.py", line 481, in osuSearchHandler
    async with app.state.services.http_client.get(
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/aiohttp/client.py", line 536, in _request
    conn = await self._connector.connect(
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 540, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 901, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/root/bancho.py/.venv/lib/python3.9/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc

Additional context

No response

lokillo-0 commented 1 year ago

What mirror are you using?

7ez commented 1 year ago

looks like your vps has an error connecting to the mirror

mames1dev commented 1 year ago

i use these endpoint

MIRROR_SEARCH_ENDPOINT=https://catboy.best/api/search MIRROR_DOWNLOAD_ENDPOINT=https://catboy.best/d

mames1dev commented 1 year ago

This was due to a connection problem with the server. Thank you for your response!