[AUTO] Error: Error checking partners whitelist for guild 1369669999345537145: There is no current event loop in t... #282

Open
opened 2026-07-14 16:50:24 +00:00 by Gameur · 0 comments
Owner

Type: ERROR
Message: Error checking partners whitelist for guild 1369669999345537145: There is no current event loop in thread 'asyncio_1'.
Source: KubyBot.predicate:124

Traceback:

Traceback (most recent call last):
  File "/home/discord/Bot/Kuby/utils/premium.py", line 42, in read_file
    data = json.load(f)
           ^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 293, in load
    return loads(fp.read(),
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 5 column 5 (char 82)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/discord/Bot/Kuby/utils/premium.py", line 118, in predicate
    partners = await load_partners_whitelist()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/discord/Bot/Kuby/utils/premium.py", line 48, in load_partners_whitelist
    return await asyncio.to_thread(read_file)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/threads.py", line 25, in to_thread
    return await loop.run_in_executor(None, func_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/discord/Bot/Kuby/utils/premium.py", line 45, in read_file
    kuby_logger.error(f"Failed to read whitelist file at {WHITELIST_PARTNERS_FILE}: {e}")
  File "/usr/lib/python3.12/logging/__init__.py", line 1568, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/lib/python3.12/logging/__init__.py", line 1684, in _log
    self.handle(record)
  File "/usr/lib/python3.12/logging/__init__.py", line 1700, in handle
    self.callHandlers(record)
  File "/usr/lib/python3.12/logging/__init__.py", line 1762, in callHandlers
    hdlr.handle(record)
  File "/usr/lib/python3.12/logging/__init__.py", line 1028, in handle
    self.emit(record)
  File "/home/discord/Bot/Kuby/src/logger.py", line 122, in emit
    loop = asyncio.get_event_loop()
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/asyncio/events.py", line 702, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'asyncio_1'.

**Type:** ERROR **Message:** Error checking partners whitelist for guild 1369669999345537145: There is no current event loop in thread 'asyncio_1'. **Source:** KubyBot.predicate:124 **Traceback:** ```python Traceback (most recent call last): File "/home/discord/Bot/Kuby/utils/premium.py", line 42, in read_file data = json.load(f) ^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 293, in load return loads(fp.read(), ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 5 column 5 (char 82) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/discord/Bot/Kuby/utils/premium.py", line 118, in predicate partners = await load_partners_whitelist() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/discord/Bot/Kuby/utils/premium.py", line 48, in load_partners_whitelist return await asyncio.to_thread(read_file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/discord/Bot/Kuby/utils/premium.py", line 45, in read_file kuby_logger.error(f"Failed to read whitelist file at {WHITELIST_PARTNERS_FILE}: {e}") File "/usr/lib/python3.12/logging/__init__.py", line 1568, in error self._log(ERROR, msg, args, **kwargs) File "/usr/lib/python3.12/logging/__init__.py", line 1684, in _log self.handle(record) File "/usr/lib/python3.12/logging/__init__.py", line 1700, in handle self.callHandlers(record) File "/usr/lib/python3.12/logging/__init__.py", line 1762, in callHandlers hdlr.handle(record) File "/usr/lib/python3.12/logging/__init__.py", line 1028, in handle self.emit(record) File "/home/discord/Bot/Kuby/src/logger.py", line 122, in emit loop = asyncio.get_event_loop() ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/events.py", line 702, in get_event_loop raise RuntimeError('There is no current event loop in thread %r.' RuntimeError: There is no current event loop in thread 'asyncio_1'. ```
Gameur added the
bug
label 2026-07-14 16:50:24 +00:00
Gameur self-assigned this 2026-07-14 16:50:24 +00:00
Sign in to join this conversation.
No description provided.