Skip to content

RuntimeError: Task got Future attached to a different loop #6

@Eikosa

Description

@Eikosa
Task <Task pending name='Task-30' coro=<Dispatcher.handler_worker() running at /usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py:240>> got Future <Future pending cb=[Client.clear_listener(5177820294)()]> attached to a different loop
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/usr/local/lib/python3.8/dist-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "main.py", line 404, in me
    answer = await client.ask(5177820294, '/rehber')
  File "/usr/local/lib/python3.8/dist-packages/pyromod/listen/listen.py", line 60, in ask
    response = await self.listen(chat_id, filters, timeout)
  File "/usr/local/lib/python3.8/dist-packages/pyromod/listen/listen.py", line 55, in listen
    return await asyncio.wait_for(future, timeout)
  File "/usr/lib/python3.8/asyncio/tasks.py", line 455, in wait_for
    return await fut
RuntimeError: Task <Task pending name='Task-30' coro=<Dispatcher.handler_worker() running at /usr/local/lib/python3.8/dist-packages/pyrogram/dispatcher.py:240>> got Future <Future pending cb=[Client.clear_listener(5177820294)()]> attached to a different loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions