Medusa icon indicating copy to clipboard operation
Medusa copied to clipboard

[APP SUBMITTED]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 160: unexpected end of data

Open mariajopinchunga opened this issue 2 years ago • 0 comments

INFO

Python Version: 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0] Operating System: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 Locale: UTF-8 Branch: master Database: 44.19 Commit: pymedusa/Medusa@e4870f8f4a322e67c77434597ccc09aa6524aa05 Link to Log: No Log available

ERROR

2022-05-21 08:25:48 ERROR    TORNADO :: [e4870f8] Uncaught exception in APIv2: UnicodeDecodeError('utf-8', b'2022-05-21 08:25:48 WARNING  POSTPROCESSQUEUE-POST-PROCESS :: [e4870f8] Processing failed for /mnt/cryptoPlex/PLEX/Series1080/Cr\xc3\xadmenes Perfectos/Temporada 2/Cr\xc3', 160, 161, 'unexpected end of data')
Request: GET /api/v2/log?level=INFO&thread=&period=one_day&query=&limit=1000 (192.168.10.26)
Traceback (most recent call last):
  File "/opt/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/opt/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/opt/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/opt/medusa/ext/tornado/gen.py", line 762, in run
    value = future.result()
  File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/opt/medusa/medusa/server/api/v2/log.py", line 144, in get
    return self._paginate(data_generator=data_generator)
  File "/opt/medusa/medusa/server/api/v2/base.py", line 343, in _paginate
    results = list(data_generator())[:arg_limit]
  File "/opt/medusa/medusa/server/api/v2/log.py", line 140, in data_generator
    for line in read_loglines(**reader_kwargs):
  File "/opt/medusa/medusa/logger/__init__.py", line 166, in read_loglines
    for line in reverse_readlines(f):
  File "/opt/medusa/medusa/logger/__init__.py", line 267, in reverse_readlines
    yield line.decode(encoding) + (newline if append_newline else empty)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 160: unexpected end of data

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

mariajopinchunga avatar May 23 '22 07:05 mariajopinchunga

Should be fixed with https://github.com/pymedusa/Medusa/pull/10887

medariox avatar Aug 19 '22 09:08 medariox