-
-
Notifications
You must be signed in to change notification settings - Fork 213
Description
After setting up MAS (Matrix Authentication Service), it seems the Telegram bridge is no longer able to start.
The following is logged when it tries to start:
/usr/lib/python3.12/site-packages/mautrix_telegram/web/public/__init__.py:26: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
[2025-08-11 04:21:18,546] [INFO@mau.init] Initializing mautrix-telegram 0.15.3+dev.b65a1cc6
[2025-08-11 04:21:18,571] [INFO@mau.init] Initialization complete in 0.3 seconds
[2025-08-11 04:21:18,645] [INFO@mau.mx] Ensuring connectivity to homeserver
[2025-08-11 04:21:18,659] [INFO@mau.as] Received ping from homeserver with transaction ID mautrix-python_1754886078654231813_1
[2025-08-11 04:21:18,661] [INFO@aiohttp.access] 172.18.0.2 [11/Aug/2025:04:21:18 +0000] "POST /_matrix/app/v1/ping HTTP/1.1" 200 161 "-" "Synapse/1.135.0"
[2025-08-11 04:21:18,672] [CRITICAL@mau.init] Unexpected error in main event loop
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/mautrix/util/program.py", line 214, in _run
self.loop.run_until_complete(self.start())
File "/usr/lib/python3.12/asyncio/base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mautrix/bridge/bridge.py", line 254, in start
await self.matrix.init_encryption()
File "/usr/lib/python3.12/site-packages/mautrix/bridge/matrix.py", line 299, in init_encryption
await self.e2ee.start()
File "/usr/lib/python3.12/site-packages/mautrix/bridge/e2ee.py", line 250, in start
flows = await self.client.get_login_flows()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mautrix/client/api/authentication.py", line 46, in get_login_flows
resp = await self.api.request(Method.GET, Path.v3.login)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mautrix/api.py", line 425, in request
resp_data, resp = await self._send(
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/mautrix/api.py", line 265, in _send
raise make_request_error(
mautrix.errors.request.MUnrecognized: Unrecognized request
Bridge and Synapse versions can be seen in the log, I'm using the latest stable Synapse and the "latest" tag for the bridge Docker image.
Edit: If I change the homeserver URL in the bridge config to the public URL instead it starts working, since the public URL has the compatibility routes for the login API. So as a workaround that makes it function seemingly as normal again, but ideally the bridge should be compatible with the new MAS stuff natively so it can go back to using the internal Docker hostnames.
Edit 2: And the above error still happens even if msc4190: true is set in the config, which AFAICT is explicitly supposed to not use the old /login API.