tgcf
tgcf copied to clipboard
TimedOutError: RPCError -503: Timedout (caused by GetStateRequest)
-1001998615640:
[-1001986679862,
-1002140395533],
-1001985364332:
[-1001986679862,
-1002140395533],
-1002143718455:
[-1001986679862,
-1002140395533]}
[11/09/23 15:36:28] INFO Disconnecting from mtprotosender.py:317
91.108.56.143:443/TcpFul
l...
INFO Disconnection from mtprotosender.py:337
91.108.56.143:443/TcpFul
l complete!
╭────────────────── Traceback (most recent call last) ───────────────────╮
│ /root/my-tgcf/.venv/lib/python3.11/site-packages/tgcf/cli.py:120 in │
│ main │
│ │
│ 117 │ else: │
│ 118 │ │ from tgcf.live import start_sync # pylint: disable=impo │
│ 119 │ │ │
│ ❱ 120 │ │ asyncio.run(start_sync()) │
│ 121 │
│ 122 │
│ 123 # AAHNIK 2021 │
│ │
│ /usr/lib/python3.11/asyncio/runners.py:190 in run │
│ │
│ 187 │ │ │ "asyncio.run() cannot be called from a running event │
│ 188 │ │
│ 189 │ with Runner(debug=debug) as runner: │
│ ❱ 190 │ │ return runner.run(main) │
│ 191 │
│ 192 │
│ 193 def _cancel_all_tasks(loop): │
│ │
│ /usr/lib/python3.11/asyncio/runners.py:118 in run │
│ │
│ 115 │ │ │
│ 116 │ │ self._interrupt_count = 0 │
│ 117 │ │ try: │
│ ❱ 118 │ │ │ return self._loop.run_until_complete(task) │
│ 119 │ │ except exceptions.CancelledError: │
│ 120 │ │ │ if self._interrupt_count > 0: │
│ 121 │ │ │ │ uncancel = getattr(task, "uncancel", None) │
│ │
│ /usr/lib/python3.11/asyncio/base_events.py:653 in run_until_complete │
│ │
│ 650 │ │ if not future.done(): │
│ 651 │ │ │ raise RuntimeError('Event loop stopped before Futur │
│ 652 │ │ │
│ ❱ 653 │ │ return future.result() │
│ 654 │ │
│ 655 │ def stop(self): │
│ 656 │ │ """Stop running the event loop. │
│ │
│ /root/my-tgcf/.venv/lib/python3.11/site-packages/tgcf/live.py:162 in │
│ start_sync │
│ │
│ 159 │ │ │ ) │
│ 160 │ │ ) │
│ 161 │ config.from_to = await config.load_from_to(client, config.CO │
│ ❱ 162 │ await client.run_until_disconnected() │
│ 163 │
│ │
│ /root/my-tgcf/.venv/lib/python3.11/site-packages/telethon/client/updat │
│ es.py:32 in _run_until_disconnected │
│ │
│ 29 │ async def _run_until_disconnected(self: 'TelegramClient'): │
│ 30 │ │ try: │
│ 31 │ │ │ # Make a high-level request to notify that we want u │
│ ❱ 32 │ │ │ await self(functions.updates.GetStateRequest()) │
│ 33 │ │ │ result = await self.disconnected │
│ 34 │ │ │ if self._updates_error is not None: │
│ 35 │ │ │ │ raise self._updates_error │
│ │
│ /root/my-tgcf/.venv/lib/python3.11/site-packages/telethon/client/users │
│ .py:30 in call │
│ │
│ 27 │
│ 28 class UserMethods: │
│ 29 │ async def call(self: 'TelegramClient', request, ordered= │
│ ❱ 30 │ │ return await self._call(self._sender, request, ordered=o │
│ 31 │ │
│ 32 │ async def _call(self: 'TelegramClient', sender, request, ord │
│ 33 │ │ if flood_sleep_threshold is None: │
│ │
│ /root/my-tgcf/.venv/lib/python3.11/site-packages/telethon/client/users │
│ .py:84 in _call │
│ │
│ 81 │ │ │ │ │ else: │
│ 82 │ │ │ │ │ │ return results │
│ 83 │ │ │ │ else: │
│ ❱ 84 │ │ │ │ │ result = await future │
│ 85 │ │ │ │ │ self.session.process_entities(result) │
│ 86 │ │ │ │ │ self._entity_cache.add(result) │
│ 87 │ │ │ │ │ return result │
╰────────────────────────────────────────────────────────────────────────╯
TimedOutError: RPCError -503: Timedout (caused by GetStateRequest)
Fixed: Added filter properly for forward files type .
@sandippshah If this was fixed, close the issue.