zhongkechen / castbot

A Telegram bot to stream videos to smart tv
GNU Affero General Public License v3.0
2 stars 0 forks source link

pyrogram error #11

Open aicynide opened 2 months ago

aicynide commented 2 months ago
ERROR:pyrogram.dispatcher:
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/device.py", line 106, in _refresh_one_finder
    return await finder.find()
           ^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/devices/chromecast.py", line 52, in find
    found_devices: typing.List[catt.api.CattDevice] = await run_method_in_executor(catt.api.discover)
                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/devices/chromecast.py", line 18, in run_method_in_executor
    return await asyncio.get_event_loop().run_in_executor(_EXECUTOR, partial_function)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/bot.py", line 65, in _callback_handler
    await button.on_click(message)
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/button.py", line 100, in on_click
    devices = await self.finders.list_all_devices()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/device.py", line 123, in list_all_devices
    await self.refresh_all_devices()
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/device.py", line 112, in refresh_all_devices
    found_devices = await asyncio.gather(*find_devices)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/castbot/device.py", line 105, in _refresh_one_finder
    with async_timeout.timeout(finder.request_timeout + 1):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/async_timeout/__init__.py", line 116, in __exit__
    self._do_exit(exc_type)
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/async_timeout/__init__.py", line 212, in _do_exit
    raise asyncio.TimeoutError
TimeoutError