Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

aiohttp version bump breaks Sygnal on startup #407

@V02460

Description

@V02460

Starting with the version bump aiohttp 3.9.5→3.10.2 in 50d674f, Sygnal throws builtins.RuntimeError: no running event loop on startup. Last working commit is f26e7ae.

Steps to reproduce

cd scripts-dev/proxy-test
docker build -t sygnal -f ../../docker/Dockerfile ../..
podman compose up --force-recreate

Traceback

Error during startup:
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/sygnal/sygnal.py", line 228, in start
    yield ensureDeferred(self.make_pushkins_then_start())
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 1358, in ensureDeferred
    return Deferred.fromCoroutine(coro)
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 1325, in fromCoroutine
    return _cancellableInlineCallbacks(coro)
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 2197, in _cancellableInlineCallbacks
    _inlineCallbacks(None, gen, status, _copy_context())
--- <exception caught here> ---
  File "/usr/local/lib/python3.11/site-packages/sygnal/sygnal.py", line 228, in start
    yield ensureDeferred(self.make_pushkins_then_start())
  File "/usr/local/lib/python3.11/site-packages/twisted/internet/defer.py", line 2014, in _inlineCallbacks
    result = context.run(gen.send, result)
  File "/usr/local/lib/python3.11/site-packages/sygnal/sygnal.py", line 200, in make_pushkins_then_start
    self.pushkins[app_id] = await self._make_pushkin(app_id, app_cfg)
  File "/usr/local/lib/python3.11/site-packages/sygnal/sygnal.py", line 195, in _make_pushkin
    return await clarse.create(app_name, self, app_config)
  File "/usr/local/lib/python3.11/site-packages/sygnal/gcmpushkin.py", line 245, in create
    session = aiohttp.ClientSession(trust_env=True, auto_decompress=False)
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 294, in __init__
    loop = loop or asyncio.get_running_loop()
builtins.RuntimeError: no running event loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions