Skip to content

Fails to start on Python 3.13Β #24

@carnivorecookies

Description

@carnivorecookies

When trying to start the server, I get the following errors:

2025-10-15 16:08:30 | πŸ“œ INFO     unifier.core           Loading Unifier extensions...
2025-10-15 16:08:31 | ❕ WARNING  unifier.core           Cache backup file could not be found, skipping restore.
2025-10-15 16:08:31 | πŸ“œ INFO     unifier.core           Registering application commands...
2025-10-15 16:08:31 | πŸ“œ INFO     unifier.revolt.core    Booting Revolt client...
2025-10-15 16:08:31 | ❌ ERROR    unifier.revolt.core    Revolt client failed to boot!
Traceback (most recent call last):
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/http_parser.py", line 1018, in feed_data
    chunk = self.decompressor.decompress_sync(chunk)
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/compression_utils.py", line 306, in decompress_sync
    return self._obj.decompress(data)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^
zstandard.backend_c.ZstdError: could not determine content size in frame header

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aiohttp/_http_parser.pyx", line 761, in aiohttp._http_parser.cb_on_body
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/http_parser.py", line 1020, in feed_data
    raise ContentEncodingError(
        "Can not decode content-encoding: %s" % self.encoding
    )
aiohttp.http_exceptions.ContentEncodingError: 400, message:
  Can not decode content-encoding: zstd

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/pi/unifier/cogs/bridge_revolt.py", line 2099, in revolt_boot
    await self.bot.revolt_client.start()
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/revolt/client.py", line 114, in start
    api_info = await self.get_api_info()
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/revolt/client.py", line 105, in get_api_info
    text = await resp.text()
           ^^^^^^^^^^^^^^^^^
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 737, in text
    await self.read()
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 695, in read
    self._body = await self.content.read()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/unifier/.venv/lib/python3.13/site-packages/aiohttp/streams.py", line 400, in read
    raise self._exception
aiohttp.client_exceptions.ClientPayloadError: 400, message:
  Can not decode content-encoding: zstd

I'm not sure whether this is an issue with zstandard or if Revolt/Stoat servers changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions