error in prod hl7 processing of an ADT_A05
Closed this issue · 0 comments
id2359 commented
error in prod
[INFO:2023-04-20 11:50:21,937:tasks.py:39:handle_hl7_message] processing task for umrn XXXXXXX
[INFO:2023-04-20 11:50:21,937:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:21,937:utils.py:51:get_event_code] event code = ADT_A05
[INFO:2023-04-20 11:50:21,938:tasks.py:45:handle_hl7_message] HL7 handler: XXXXXXX ADT_A05 received
[INFO:2023-04-20 11:50:21,938:updater.py:192:handle] updating or creating patient from hl7 message data
[INFO:2023-04-20 11:50:22,056:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:22,057:utils.py:51:get_event_code] event code = ADT_A05
[INFO:2023-04-20 11:50:22,057:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:22,057:utils.py:51:get_event_code] event code = ADT_A05
[ERROR:2023-04-20 11:50:22,058:updater.py:234:handle] Error creating/updating patient None:
[INFO:2023-04-20 11:50:22,058:tasks.py:49:handle_hl7_message] HL7 handler: XXXXXXX ADT_A05 processed
[ERROR:2023-04-20 11:50:22,062:trace.py:265:_log_error] Task rdrf.services.tasks.handle_hl7_message[7dfc687d-6521-4c74-b0eb-b305683efd75] raised unexpected: EncodeError(TypeError('Object of type AssertionError is not JSON serializable'))
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type AssertionError is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/celery/app/trace.py", line 517, in trace_task
mark_as_done(
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 161, in mark_as_done
self.store_result(task_id, result, state, request=request)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 477, in store_result
self._store_result(task_id, result, state, traceback,
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 904, in _store_result
self._set_with_state(self.get_key_for_task(task_id), self.encode(meta), state)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 367, in encode
_, _, payload = self._encode(data)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 371, in _encode
return dumps(data, serializer=self.serializer)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 53, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/env/lib/python3.8/site-packages/kombu/exceptions.py", line 21, in reraise
raise value.with_traceback(tb)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
kombu.exceptions.EncodeError: Object of type AssertionError is not JSON serializable
[INFO:2023-04-20 11:50:27,518:tasks.py:39:handle_hl7_message] processing task for umrn XXXXXXX
[INFO:2023-04-20 11:50:27,519:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:27,519:utils.py:51:get_event_code] event code = ADT_A01
[INFO:2023-04-20 11:50:27,519:tasks.py:45:handle_hl7_message] HL7 handler: XXXXXXX ADT_A01 received
[INFO:2023-04-20 11:50:27,519:updater.py:192:handle] updating or creating patient from hl7 message data
[INFO:2023-04-20 11:50:27,572:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:27,573:utils.py:51:get_event_code] event code = ADT_A01
[INFO:2023-04-20 11:50:27,573:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:27,573:utils.py:51:get_event_code] event code = ADT_A01
[ERROR:2023-04-20 11:50:27,574:updater.py:234:handle] Error creating/updating patient None:
[INFO:2023-04-20 11:50:27,574:tasks.py:49:handle_hl7_message] HL7 handler: XXXXXXX ADT_A01 processed
[ERROR:2023-04-20 11:50:27,578:trace.py:265:_log_error] Task rdrf.services.tasks.handle_hl7_message[9aa499a3-a9a9-4e16-82e7-9d46032a63c0] raised unexpected: EncodeError(TypeError('Object of type AssertionError is not JSON serializable'))
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type AssertionError is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/celery/app/trace.py", line 517, in trace_task
mark_as_done(
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 161, in mark_as_done
self.store_result(task_id, result, state, request=request)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 477, in store_result
self._store_result(task_id, result, state, traceback,
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 904, in _store_result
self._set_with_state(self.get_key_for_task(task_id), self.encode(meta), state)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 367, in encode
_, _, payload = self._encode(data)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 371, in _encode
return dumps(data, serializer=self.serializer)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 53, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/env/lib/python3.8/site-packages/kombu/exceptions.py", line 21, in reraise
raise value.with_traceback(tb)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
kombu.exceptions.EncodeError: Object of type AssertionError is not JSON serializable
[INFO:2023-04-20 11:50:28,699:tasks.py:39:handle_hl7_message] processing task for umrn XXXXXXX
[INFO:2023-04-20 11:50:28,700:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:28,700:utils.py:51:get_event_code] event code = ADT_A05
[INFO:2023-04-20 11:50:28,700:tasks.py:45:handle_hl7_message] HL7 handler: XXXXXXX ADT_A05 received
[INFO:2023-04-20 11:50:28,700:updater.py:192:handle] updating or creating patient from hl7 message data
[INFO:2023-04-20 11:50:28,809:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:28,809:utils.py:51:get_event_code] event code = ADT_A05
[INFO:2023-04-20 11:50:28,809:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:28,809:utils.py:51:get_event_code] event code = ADT_A05
[ERROR:2023-04-20 11:50:28,810:updater.py:234:handle] Error creating/updating patient None:
[INFO:2023-04-20 11:50:28,810:tasks.py:49:handle_hl7_message] HL7 handler: XXXXXXX ADT_A05 processed
[ERROR:2023-04-20 11:50:28,815:trace.py:265:_log_error] Task rdrf.services.tasks.handle_hl7_message[5a92c350-17d3-4ca7-8574-c99e8202423a] raised unexpected: EncodeError(TypeError('Object of type AssertionError is not JSON serializable'))
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type AssertionError is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/celery/app/trace.py", line 517, in trace_task
mark_as_done(
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 161, in mark_as_done
self.store_result(task_id, result, state, request=request)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 477, in store_result
self._store_result(task_id, result, state, traceback,
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 904, in _store_result
self._set_with_state(self.get_key_for_task(task_id), self.encode(meta), state)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 367, in encode
_, _, payload = self._encode(data)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 371, in _encode
return dumps(data, serializer=self.serializer)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 53, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/env/lib/python3.8/site-packages/kombu/exceptions.py", line 21, in reraise
raise value.with_traceback(tb)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
kombu.exceptions.EncodeError: Object of type AssertionError is not JSON serializable
[INFO:2023-04-20 11:50:30,846:tasks.py:39:handle_hl7_message] processing task for umrn XXXXXXX
[INFO:2023-04-20 11:50:30,846:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:30,846:utils.py:51:get_event_code] event code = ADT_A01
[INFO:2023-04-20 11:50:30,846:tasks.py:45:handle_hl7_message] HL7 handler: XXXXXXX ADT_A01 received
[INFO:2023-04-20 11:50:30,846:updater.py:192:handle] updating or creating patient from hl7 message data
[INFO:2023-04-20 11:50:30,902:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:30,903:utils.py:51:get_event_code] event code = ADT_A01
[INFO:2023-04-20 11:50:30,903:utils.py:46:get_event_code] get event code
[INFO:2023-04-20 11:50:30,903:utils.py:51:get_event_code] event code = ADT_A01
[ERROR:2023-04-20 11:50:30,903:updater.py:234:handle] Error creating/updating patient None:
[INFO:2023-04-20 11:50:30,903:tasks.py:49:handle_hl7_message] HL7 handler: XXXXXXX ADT_A01 processed
[ERROR:2023-04-20 11:50:30,907:trace.py:265:_log_error] Task rdrf.services.tasks.handle_hl7_message[f9e957f3-6187-478a-9b09-c48e39f10fa7] raised unexpected: EncodeError(TypeError('Object of type AssertionError is not JSON serializable'))
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type AssertionError is not JSON serializable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/env/lib/python3.8/site-packages/celery/app/trace.py", line 517, in trace_task
mark_as_done(
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 161, in mark_as_done
self.store_result(task_id, result, state, request=request)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 477, in store_result
self._store_result(task_id, result, state, traceback,
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 904, in _store_result
self._set_with_state(self.get_key_for_task(task_id), self.encode(meta), state)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 367, in encode
_, _, payload = self._encode(data)
File "/env/lib/python3.8/site-packages/celery/backends/base.py", line 371, in _encode
return dumps(data, serializer=self.serializer)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/usr/local/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 53, in _reraise_errors
reraise(wrapper, wrapper(exc), sys.exc_info()[2])
File "/env/lib/python3.8/site-packages/kombu/exceptions.py", line 21, in reraise
raise value.with_traceback(tb)
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 49, in _reraise_errors
yield
File "/env/lib/python3.8/site-packages/kombu/serialization.py", line 220, in dumps
payload = encoder(data)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 65, in dumps
return _dumps(s, cls=cls or _default_encoder,
File "/usr/local/lib/python3.8/json/__init__.py", line 234, in dumps
return cls(
File "/usr/local/lib/python3.8/json/encoder.py", line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File "/usr/local/lib/python3.8/json/encoder.py", line 257, in iterencode
return _iterencode(o, 0)
File "/env/lib/python3.8/site-packages/kombu/utils/json.py", line 55, in default
return super().default(o)
File "/usr/local/lib/python3.8/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
kombu.exceptions.EncodeError: Object of type AssertionError is not JSON serializable