hail icon indicating copy to clipboard operation
hail copied to clipboard

[batch] Logging error: hail_logging.py: 18 fails assertion.

Open danking opened this issue 4 months ago • 0 comments

What happened?

--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.9/logging/__init__.py", line 1083, in emit
msg = self.format(record)
File "/usr/lib/python3.9/logging/__init__.py", line 927, in format
return fmt.format(record)
File "/usr/local/lib/python3.9/dist-packages/pythonjsonlogger/jsonlogger.py", line 246, in format
return self.serialize_log_record(log_record)
File "/usr/local/lib/python3.9/dist-packages/pythonjsonlogger/jsonlogger.py", line 215, in serialize_log_record
return "%s%s" % (self.prefix, self.jsonify_log_record(log_record))
File "/usr/local/lib/python3.9/dist-packages/pythonjsonlogger/jsonlogger.py", line 207, in jsonify_log_record
return self.json_serializer(log_record,
File "/usr/local/lib/python3.9/dist-packages/hailtop/hail_logging.py", line 18, in logger_json_serializer
assert default is None and cls is OrJsonEncoder and indent is None and ensure_ascii is False, (
AssertionError: (None, <class 'hailtop.hail_logging.OrJsonEncoder'>, None, False)
Call stack:
File "/usr/local/lib/python3.9/dist-packages/aiohttp/client.py", line 367, in __del__
self._loop.call_exception_handler(context)
File "/usr/lib/python3.9/asyncio/base_events.py", line 1779, in call_exception_handler
self.default_exception_handler(context)
File "/usr/lib/python3.9/asyncio/base_events.py", line 1753, in default_exception_handler
logger.error('\n'.join(log_lines), exc_info=exc_info)
Message: 'Unclosed client session\nclient_session: <aiohttp.client.ClientSession object at 0x7ff9c8559490>'

https://cloudlogging.app.goo.gl/PafWAh6xZEuQFhr78

Version

0.2.127

Relevant log output

No response

danking avatar Feb 07 '24 15:02 danking