Created
June 16, 2021 08:08
-
-
Save 1ort/5fbd7284d7c6771d5b217002c4300a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Task exception was never retrieved | |
future: <Task finished coro=<Dispatcher._process_polling_updates() done, defined at C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\dispatcher.py:409> exception=RuntimeError('Task <Task pending coro=<Handler.notify() running at C:\\Users\\DNS\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-packages\\aiogram\\dispatcher\\handler.py:116> cb=[gather.<locals>._done_callback() at C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\lib\\asyncio\\tasks.py:691]> got Future <Future pending cb=[_chain_future.<locals>._call_check_cancel() at C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\\lib\\asyncio\\futures.py:351]> attached to a different loop')> | |
Traceback (most recent call last): | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\dispatcher.py", line 417, in _process_polling_updates | |
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)): | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\dispatcher.py", line 238, in process_updates | |
return await asyncio.gather(*tasks) | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\handler.py", line 116, in notify | |
response = await handler_obj.handler(*args, **partial_data) | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\dispatcher.py", line 259, in process_update | |
return await self.message_handlers.notify(update.message) | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\handler.py", line 116, in notify | |
response = await handler_obj.handler(*args, **partial_data) | |
File "C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\dispatcher.py", line 1396, in wrapped | |
return await func(*args, **kwargs) | |
File "A:/test_bot/main.py", line 113, in account_message | |
user = await BotUser(user=message.from_user).fetch() | |
File "A:\test_bot\db_worker.py", line 55, in fetch | |
response = await db.users.find_one({'user_id': self.user_id}, {'_id': 0}) | |
RuntimeError: Task <Task pending coro=<Handler.notify() running at C:\Users\DNS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\aiogram\dispatcher\handler.py:116> cb=[gather.<locals>._done_callback() at C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\tasks.py:691]> got Future <Future pending cb=[_chain_future.<locals>._call_check_cancel() at C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\asyncio\futures.py:351]> attached to a different loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment