UnicodeDecodeError: 'utf-8' codec can't decode byte 0xea in position 609: invalid continuation byte #30
Bordasludovic
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Mercure team
I have a recurring problem with the Router module on Mercure version 0.3.0-beta.2 (this is also the case with version 0.2.2-beta.1).
I think it's related to DICOM files that don't respect the character encoding rules but it's quite annoying because it generates a lot of logs in my system.
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: Traceback (most recent call last):
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: File "/opt/mercure/app/routing/route_series.py", line 87, in route_series
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: tagsList: Dict[str, str] = json.load(json_file)
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: File "/usr/lib/python3.10/json/init.py", line 293, in load
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: return loads(fp.read(),
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: File "/usr/lib/python3.10/codecs.py", line 322, in decode
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: (result, consumed) = self._buffer_decode(data, self.errors, final)
mars 29 08:03:38 tlg-dcomr03 mercure[531380]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xea in position 609: invalid continuation byte
mars 29 08:03:39 tlg-dcomr03 mercure[531380]: INFO route_series: Processing series 1.2.826.0.1.3680043.9.7508.1220677730951038966187074015437812736 [task: 783e9112-ed9a-11ee-8d9c-11eca3fd9cd3]
mars 29 08:03:39 tlg-dcomr03 mercure[531380]: INFO route_series: DICOM files found: 3 [task: 783e9112-ed9a-11ee-8d9c-11eca3fd9cd3]
mars 29 08:03:39 tlg-dcomr03 mercure[531380]: ERROR route_series: Invalid tag for series 1.2.826.0.1.3680043.9.7508.1220677730951038966187074015437812736 [task: 783e9112-ed9a-11ee-8d9c-11eca3fd9cd3]
Can you help?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions