Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APP SUBMITTED]: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte #9094

Closed
gilberth opened this issue Jan 22, 2021 · 16 comments

Comments

@gilberth
Copy link

INFO

Python Version: 3.8.5 (default, Jul 28 2020, 12:59:40) [GCC 9.3.0]
Operating System: Linux-5.4.0-52-generic-x86_64-with-glibc2.29
Locale: UTF-8
Branch: master
Database: 44.17
Commit: 2b874c2
Link to Log: https://gist.github.com/4ff7a9b22924fdaa4ef7f1e21f0fe9d1

ERROR

2021-01-22 21:50:37 ERROR    Thread_0 :: [2b874c2] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/opt/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/opt/medusa/medusa/server/web/home/handler.py", line 1806, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1563, in get_or_create_for_user_func
    return self.get_or_create(
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1028, in get_or_create
    with Lock(
  File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/opt/medusa/ext/dogpile/cache/region.py", line 963, in get_value
    value = self._get_from_backend(key)
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1250, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1207, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@medariox
Copy link
Contributor

#9070 (comment)

@papampi
Copy link

papampi commented Jan 25, 2021

INFO

Python Version: 3.9.0 (default, Dec 02 2020, 16:57:56) [GCC 8.4.0]
Operating System: Linux-4.14.24-qnap-x86_64-with-glibc2.27
Locale: UTF-8
Branch: master
Database: 44.17
Commit: 2b874c2
Link to Log: https://gist.github.com/346368548283be607cef5f893dc8b6a7

ERROR

2021-01-25 16:41:00 ERROR    Thread_0 :: [2b874c2] Could not connect to Trakt service: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/medusa/show/recommendations/trakt.py", line 143, in fetch_popular_shows
    trending_shows.append(self._create_recommended_show(
  File "", line 2, in _create_recommended_show
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/cache/region.py", line 1563, in get_or_create_for_user_func
    return self.get_or_create(
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/cache/region.py", line 1028, in get_or_create
    with Lock(
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/cache/region.py", line 963, in get_value
    value = self._get_from_backend(key)
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/cache/region.py", line 1250, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/share/CACHEDEV1_DATA/.qpkg/OMedusa/OMedusa/ext/dogpile/cache/region.py", line 1207, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/opt/lib/python3.9/json/__init__.py", line 341, in loads
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@medariox
Copy link
Contributor

Delete the recommended.dbm cache in your cache folder (Medusa/cache):

recommended.dbm.bak
recommended.dbm.dat
recommended.dbm.dir

and restart.

@papampi
Copy link

papampi commented Jan 25, 2021

Oh... Remembered.
That problem existed for long
Isn't it possible to automate the removal of those files incase of this error?

@pax0707
Copy link

pax0707 commented Jan 27, 2021

INFO

Python Version: 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0]
Operating System: Linux-5.4.83-v7l+-armv7l-with-debian-10.7
Locale: UTF-8
Branch: master
Database: 44.17
Commit: 2ab9d45
Link to Log: No Log available

ERROR

2021-01-27 21:12:00 ERROR    Thread_1 :: [2ab9d45] Could not connect to Trakt service: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/opt/medusa/medusa/show/recommendations/trakt.py", line 145, in fetch_popular_shows
    show=show
  File "", line 2, in _create_recommended_show
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1578, in get_or_create_for_user_func
    key, user_func, timeout, should_cache_fn, (arg, kw)
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1047, in get_or_create
    async_creator,
  File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/opt/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1265, in _get_from_backend
    self.backend.get_serialized(key)
  File "/opt/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.7/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.15.0-134-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/4a83384e753b6f9d70213a93e5b76749

ERROR

2021-01-27 18:48:08 ERROR    TORNADO :: [] Uncaught exception in APIv2: UnicodeDecodeError('utf-8', b'\x80\x05\x95Q\x00\x00\x00\x00\x00\x00\x00\x8c\x11dogpile.cache.api\x94\x8c\x0bCachedValue\x94\x93\x94]\x94\x8c\nSubsPlease\x94a}\x94(\x8c\x02ct\x94GA\xd7\xff*f-\xd3\xf8\x8c\x01v\x94K\x01u\x86\x94R\x94.', 0, 1, 'invalid start byte')
Request: PATCH /api/v2/series/tvdb388575 (192.168.1.145)
With body:
{"config":{"aliases":[{"season":-1,"title":"Kaifuku Jutsushi no Yarinaoshi","custom":false}],"defaultEpisodeStatus":"Wanted","dvdOrder":false,"seasonFolders":true,"anime":true,"scene":false,"sports":false,"paused":false,"location":"/Anime/Redo of Healer","airByDate":false,"subtitlesEnabled":false,"release":{"requiredWords":["Uncensored"],"ignoredWords":[],"requiredWordsExclude":false,"ignoredWordsExclude":false,"blacklist":[],"whitelist":["SubsPlease"]},"qualities":{"preferred":[],"allowed":[8,64,256]},"airdateOffset":0,"showLists":["Anime Shows"]},"language":"en"}
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/app/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/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 "/app/medusa/medusa/server/api/v2/series.py", line 174, in patch
    if patch_field and patch_field.patch(series, value):
  File "/app/medusa/medusa/server/api/v2/base.py", line 516, in patch
    setattr(target, self.attr, self.converter(value))
  File "/app/medusa/medusa/tv/base.py", line 63, in __setattr__
    super(TV, self).__setattr__(key, value)
  File "/app/medusa/medusa/tv/series.py", line 763, in whitelist
    self.release_groups.set_white_keywords(short_group_names(group_names))
  File "/app/medusa/medusa/helpers/anidb.py", line 106, in short_group_names
    short_group_list += get_short_group_name(group_name) or [group_name]
  File "", line 2, in get_short_group_name
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.15.0-134-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/787118125fd614c27cc9c6daf044e3a8

ERROR

2021-01-27 18:48:00 ERROR    Thread_0 :: [] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/app/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/app/medusa/medusa/server/web/home/handler.py", line 1806, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@SunMar
Copy link

SunMar commented Jan 29, 2021

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.4.59+-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/ed6de8eb7e8f41d0be002b3e82d796ab

ERROR

2021-01-30 00:57:51 ERROR    TORNADO :: [] Uncaught exception in APIv2: UnicodeDecodeError('utf-8', b'\x80\x05\x95S\x00\x00\x00\x00\x00\x00\x00\x8c\x11dogpile.cache.api\x94\x8c\x0bCachedValue\x94\x93\x94]\x94\x8c\x0cHorribleSubs\x94a}\x94(\x8c\x02ct\x94GA\xd7\xe1\xc6<\x0f\x84\x9d\x8c\x01v\x94K\x01u\x86\x94R\x94.', 0, 1, 'invalid start byte')
Request: PATCH /api/v2/series/tvdb267440 (172.17.0.1)
With body:
{"config":{"aliases":[{"season":2,"title":"Shingeki no Kyojin (Season 2)","custom":false},{"season":-1,"title":"Shingeki no Kyojin","custom":false},{"season":3,"title":"Attack on Titan S3","custom":false},{"season":3,"title":"Shingeki no Kyojin S3","custom":false},{"season":5,"title":"Shingeki no Kyojin S4","custom":false},{"season":5,"title":"Shingeki no Kyojin: The Final Season","custom":false},{"season":4,"title":"Attack on Titan: The Final Season","custom":false},{"season":2,"title":"Attack on Titan S2","custom":false},{"season":3,"title":"Shingeki no Kyojin (Season 3)","custom":false},{"season":4,"title":"Shingeki no Kyojin Season 3 (2019)","custom":false},{"season":2,"title":"Shingeki no Kyojin S2","custom":false},{"season":4,"title":"Attack on Titan - S4","custom":false}],"defaultEpisodeStatus":"Wanted","dvdOrder":false,"seasonFolders":true,"anime":true,"scene":true,"sports":false,"paused":false,"location":"/anime/Shows/Attack on Titan","airByDate":false,"subtitlesEnabled":false,"release":{"requiredWords":[],"ignoredWords":[],"requiredWordsExclude":false,"ignoredWordsExclude":false,"blacklist":[],"whitelist":["HorribleSubs","SubsPlease"]},"qualities":{"preferred":[32,128,512],"allowed":[2,4,8,32,64,128,256,512]},"airdateOffset":0,"showLists":["series"]},"language":"en"}
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/app/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/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 "/app/medusa/medusa/server/api/v2/series.py", line 174, in patch
    if patch_field and patch_field.patch(series, value):
  File "/app/medusa/medusa/server/api/v2/base.py", line 516, in patch
    setattr(target, self.attr, self.converter(value))
  File "/app/medusa/medusa/tv/base.py", line 63, in __setattr__
    super(TV, self).__setattr__(key, value)
  File "/app/medusa/medusa/tv/series.py", line 763, in whitelist
    self.release_groups.set_white_keywords(short_group_names(group_names))
  File "/app/medusa/medusa/helpers/anidb.py", line 106, in short_group_names
    short_group_list += get_short_group_name(group_name) or [group_name]
  File "", line 2, in get_short_group_name
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@SunMar
Copy link

SunMar commented Jan 29, 2021

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.4.59+-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/fce832ad64c7bb34678b0078538d1e06

ERROR

2021-01-30 00:57:35 ERROR    Thread_0 :: [] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/app/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/app/medusa/medusa/server/web/home/handler.py", line 1806, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.15.0-134-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/cf78e45f02add90d3aa7c7b4eabc56f2

ERROR

2021-01-30 20:53:01 ERROR    TORNADO :: [] Uncaught exception in APIv2: UnicodeDecodeError('utf-8', b'\x80\x05\x95Q\x00\x00\x00\x00\x00\x00\x00\x8c\x11dogpile.cache.api\x94\x8c\x0bCachedValue\x94\x93\x94]\x94\x8c\nSubsPlease\x94a}\x94(\x8c\x02ct\x94GA\xd7\xff*f-\xd3\xf8\x8c\x01v\x94K\x01u\x86\x94R\x94.', 0, 1, 'invalid start byte')
Request: PATCH /api/v2/series/tvdb388737 (192.168.1.145)
With body:
{"config":{"aliases":[{"season":-1,"title":"Jaku-Chara Tomozaki-kun","custom":false}],"defaultEpisodeStatus":"Wanted","dvdOrder":false,"seasonFolders":true,"anime":true,"scene":false,"sports":false,"paused":false,"location":"/Anime/Bottom-tier Character Tomozaki","airByDate":false,"subtitlesEnabled":false,"release":{"requiredWords":[],"ignoredWords":[],"requiredWordsExclude":false,"ignoredWordsExclude":false,"blacklist":[],"whitelist":["SubsPlease"]},"qualities":{"preferred":[],"allowed":[8,64,256]},"airdateOffset":0,"showLists":["Anime Shows"]},"language":"en"}
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/app/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/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 "/app/medusa/medusa/server/api/v2/series.py", line 174, in patch
    if patch_field and patch_field.patch(series, value):
  File "/app/medusa/medusa/server/api/v2/base.py", line 516, in patch
    setattr(target, self.attr, self.converter(value))
  File "/app/medusa/medusa/tv/base.py", line 63, in __setattr__
    super(TV, self).__setattr__(key, value)
  File "/app/medusa/medusa/tv/series.py", line 763, in whitelist
    self.release_groups.set_white_keywords(short_group_names(group_names))
  File "/app/medusa/medusa/helpers/anidb.py", line 106, in short_group_names
    short_group_list += get_short_group_name(group_name) or [group_name]
  File "", line 2, in get_short_group_name
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

Volodesi commented Feb 4, 2021

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-4.15.0-134-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/5baa79070ad92fb49e5771a23ad688e7

ERROR

2021-02-04 17:48:56 ERROR    Thread_0 :: [] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/app/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/app/medusa/medusa/server/web/home/handler.py", line 1806, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

Volodesi commented Feb 7, 2021

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-5.4.0-65-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/6c02e81d9386ae12f5c0bcfa00fc8d81

ERROR

2021-02-06 19:41:13 ERROR    TORNADO :: [] Uncaught exception in APIv2: UnicodeDecodeError('utf-8', b'\x80\x05\x95P\x00\x00\x00\x00\x00\x00\x00\x8c\x11dogpile.cache.api\x94\x8c\x0bCachedValue\x94\x93\x94]\x94\x8c\tErai-raws\x94a}\x94(\x8c\x02ct\x94GA\xd8\x00\x9c\x06\xb6D\x0f\x8c\x01v\x94K\x01u\x86\x94R\x94.', 0, 1, 'invalid start byte')
Request: PATCH /api/v2/series/tvdb377543 (192.168.1.145)
With body:
{"config":{"aliases":[{"season":1,"title":"Jujutsu Kaisen (TV)","custom":false}],"defaultEpisodeStatus":"Skipped","dvdOrder":false,"seasonFolders":true,"anime":true,"scene":false,"sports":false,"paused":false,"location":"/Anime/Jujutsu Kaisen","airByDate":false,"subtitlesEnabled":false,"release":{"requiredWords":[],"ignoredWords":[],"requiredWordsExclude":false,"ignoredWordsExclude":false,"blacklist":[],"whitelist":["Erai-raws"]},"qualities":{"preferred":[],"allowed":[8,64,256]},"airdateOffset":0,"showLists":["series"]},"language":"en"}
Traceback (most recent call last):
  File "/app/medusa/ext/tornado/web.py", line 1704, in _execute
    result = await result
  File "/app/medusa/ext/tornado/gen.py", line 769, in run
    yielded = self.gen.throw(*exc_info)  # type: ignore
  File "/app/medusa/medusa/server/api/v2/base.py", line 64, in async_call
    content = yield IOLoop.current().run_in_executor(executor, prepared)
  File "/app/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 "/app/medusa/medusa/server/api/v2/series.py", line 174, in patch
    if patch_field and patch_field.patch(series, value):
  File "/app/medusa/medusa/server/api/v2/base.py", line 516, in patch
    setattr(target, self.attr, self.converter(value))
  File "/app/medusa/medusa/tv/base.py", line 63, in __setattr__
    super(TV, self).__setattr__(key, value)
  File "/app/medusa/medusa/tv/series.py", line 763, in whitelist
    self.release_groups.set_white_keywords(short_group_names(group_names))
  File "/app/medusa/medusa/helpers/anidb.py", line 106, in short_group_names
    short_group_list += get_short_group_name(group_name) or [group_name]
  File "", line 2, in get_short_group_name
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

Volodesi commented Feb 7, 2021

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-5.4.0-65-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/d3abb31b4fb7738a66d01ea4522b9d90

ERROR

2021-02-06 19:41:03 ERROR    Thread_0 :: [] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/app/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/app/medusa/medusa/server/web/home/handler.py", line 1806, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@mtopps
Copy link

mtopps commented Feb 11, 2021

INFO

Python Version: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
Operating System: Windows-10-10.0.19041-SP0
Locale: cp1252
Branch: master
Database: 44.17
Commit: 2ab9d45
Link to Log: No Log available

ERROR

2021-02-11 20:23:50 ERROR    Thread_0 :: [2ab9d45] Could not connect to Trakt service: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "C:\Medusa\Medusa\medusa\show\recommendations\trakt.py", line 145, in fetch_popular_shows
    show=show
  File "", line 2, in _create_recommended_show
  File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1578, in get_or_create_for_user_func
    key, user_func, timeout, should_cache_fn, (arg, kw)
  File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1047, in get_or_create
    async_creator,
  File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 185, in __enter__
    return self._enter()
  File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 87, in _enter
    value = value_fn()
  File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1265, in _get_from_backend
    self.backend.get_serialized(key)
  File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "C:\Medusa\Python\lib\json\__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@Volodesi
Copy link

INFO

Python Version: 3.8.5 (default, Jul 20 2020, 23:11:29) [GCC 9.3.0]
Operating System: Linux-5.4.0-65-generic-x86_64-with
Locale: UTF-8
Branch: master
Database: 44.17
Commit: pymedusa/Medusa@
Link to Log: https://gist.github.com/71627b14da5f95f785d1addba7a09e64

ERROR

2021-02-11 08:52:09 ERROR    Thread_0 :: [] Exception generated: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
Traceback (most recent call last):
  File "/app/medusa/medusa/server/web/core/base.py", line 252, in async_call
    result = function(**kwargs)
  File "/app/medusa/medusa/server/web/home/handler.py", line 1511, in fetch_releasegroups
    groups = get_release_groups_for_anime(series_name)
  File "", line 2, in get_release_groups_for_anime
  File "/app/medusa/ext/dogpile/cache/region.py", line 1577, in get_or_create_for_user_func
    return self.get_or_create(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1042, in get_or_create
    with Lock(
  File "/app/medusa/ext/dogpile/lock.py", line 185, in __enter__
    return self._enter()
  File "/app/medusa/ext/dogpile/lock.py", line 87, in _enter
    value = value_fn()
  File "/app/medusa/ext/dogpile/cache/region.py", line 977, in get_value
    value = self._get_from_backend(key)
  File "/app/medusa/ext/dogpile/cache/region.py", line 1264, in _get_from_backend
    return self._parse_serialized_from_backend(
  File "/app/medusa/ext/dogpile/cache/region.py", line 1221, in _parse_serialized_from_backend
    metadata = json.loads(bytes_metadata)
  File "/usr/lib/python3.8/json/__init__.py", line 343, in loads
    s = s.decode(detect_encoding(s), 'surrogatepass')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@medariox
Copy link
Contributor

Solution is here: #9070 (comment)
and here: #9094 (comment)

Locking the issue.

@pymedusa pymedusa locked as resolved and limited conversation to collaborators Feb 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants