basedcount_bot

ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)

Jul 21st, 2025
493
0
6 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.77 KB | None | 0 0
  1.   + Exception Group Traceback (most recent call last):
  2.   |   File "/home/gmktec-server/Bots/basedcount_bot/backup_and_cheating/back_up_and_cheating.py", line 65, in backup_and_cheating_runner
  3.   |     async with asyncio.TaskGroup() as tg:
  4.   |   File "/home/gmktec-server/.local/share/uv/python/cpython-3.11.12-linux-x86_64-gnu/lib/python3.11/asyncio/taskgroups.py", line 145, in __aexit__
  5.   |     raise me from None
  6.   | ExceptionGroup: unhandled errors in a TaskGroup (2 sub-exceptions)
  7.   +-+---------------- 1 ----------------
  8.     | Traceback (most recent call last):
  9.     |   File "/home/gmktec-server/Bots/basedcount_bot/backup_and_cheating/back_up_and_cheating.py", line 29, in send_cheating_report
  10.     |     async with get_mongo_client() as mongo_client:
  11.     |   File "/home/gmktec-server/.local/share/uv/python/cpython-3.11.12-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
  12.     |     return await anext(self.gen)
  13.     |            ^^^^^^^^^^^^^^^^^^^^^
  14.     |   File "/home/gmktec-server/Bots/basedcount_bot/utility_functions.py", line 88, in get_mongo_client
  15.     |     cluster = AsyncIOMotorClient(getenv("MONGO_PASS"))
  16.     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  17.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/motor/core.py", line 171, in __init__
  18.     |     delegate = self.__delegate_class__(*args, **kwargs)
  19.     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  20.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py", line 780, in __init__
  21.     |     res = uri_parser.parse_uri(
  22.     |           ^^^^^^^^^^^^^^^^^^^^^
  23.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/uri_parser.py", line 558, in parse_uri
  24.     |     nodes = dns_resolver.get_hosts()
  25.     |             ^^^^^^^^^^^^^^^^^^^^^^^^
  26.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 140, in get_hosts
  27.     |     _, nodes = self._get_srv_response_and_hosts(True)
  28.     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 120, in _get_srv_response_and_hosts
  30.     |     results = self._resolve_uri(encapsulate_errors)
  31.     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  32.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 114, in _resolve_uri
  33.     |     raise ConfigurationError(str(exc)) from None
  34.     | pymongo.errors.ConfigurationError: The resolution lifetime expired after 21.128 seconds: Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.
  35.     +---------------- 2 ----------------
  36.     | Traceback (most recent call last):
  37.     |   File "/home/gmktec-server/Bots/basedcount_bot/backup_and_cheating/back_up_and_cheating.py", line 52, in backup
  38.     |     async with get_mongo_client() as mongo_client:
  39.     |   File "/home/gmktec-server/.local/share/uv/python/cpython-3.11.12-linux-x86_64-gnu/lib/python3.11/contextlib.py", line 210, in __aenter__
  40.     |     return await anext(self.gen)
  41.     |            ^^^^^^^^^^^^^^^^^^^^^
  42.     |   File "/home/gmktec-server/Bots/basedcount_bot/utility_functions.py", line 88, in get_mongo_client
  43.     |     cluster = AsyncIOMotorClient(getenv("MONGO_PASS"))
  44.     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  45.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/motor/core.py", line 171, in __init__
  46.     |     delegate = self.__delegate_class__(*args, **kwargs)
  47.     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  48.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py", line 780, in __init__
  49.     |     res = uri_parser.parse_uri(
  50.     |           ^^^^^^^^^^^^^^^^^^^^^
  51.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/uri_parser.py", line 558, in parse_uri
  52.     |     nodes = dns_resolver.get_hosts()
  53.     |             ^^^^^^^^^^^^^^^^^^^^^^^^
  54.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 140, in get_hosts
  55.     |     _, nodes = self._get_srv_response_and_hosts(True)
  56.     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  57.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 120, in _get_srv_response_and_hosts
  58.     |     results = self._resolve_uri(encapsulate_errors)
  59.     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  60.     |   File "/home/gmktec-server/Bots/basedcount_bot/.venv/lib/python3.11/site-packages/pymongo/srv_resolver.py", line 114, in _resolve_uri
  61.     |     raise ConfigurationError(str(exc)) from None
  62.     | pymongo.errors.ConfigurationError: The resolution lifetime expired after 21.125 seconds: Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.; Server Do53:127.0.0.53@53 answered The DNS operation timed out.
  63.     +------------------------------------
  64.  
Advertisement
Add Comment
Please, Sign In to add comment