RemiRigal / Plex-Auto-Languages

Automated language selection for Plex TV Shows !
MIT License
444 stars 17 forks source link

json.decoder.JSONDecodeError: Extra data: line 1 column 1744933 (char 1744932) #59

Closed Eagle1337 closed 1 year ago

Eagle1337 commented 1 year ago

File "C:\Users\Media\Documents\Plex-Auto-Languages\main.py", line 118, in plex_auto_languages.start() File "C:\Users\Media\Documents\Plex-Auto-Languages\main.py", line 68, in start self.init() File "C:\Users\Media\Documents\Plex-Auto-Languages\main.py", line 45, in init self.plex = PlexServer(self.config.get("plex.url"), self.config.get("plex.token"), self.notifier, self.config) File "C:\Users\Media\Documents\Plex-Auto-Languages\plex_auto_languages\plex_server.py", line 110, in init self.cache = PlexServerCache(self) File "C:\Users\Media\Documents\Plex-Auto-Languages\plex_auto_languages\plex_server_cache.py", line 41, in init if not self._load(): File "C:\Users\Media\Documents\Plex-Auto-Languages\plex_auto_languages\plex_server_cache.py", line 114, in _load cache = json.load(stream) File "C:\Users\Media\AppData\Local\Programs\Python\Python310\lib\json__init.py", line 293, in load return loads(fp.read(), File "C:\Users\Media\AppData\Local\Programs\Python\Python310\lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\Media\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 340, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1 column 1744933 (char 1744932)

RemiRigal commented 1 year ago

Thank you for opening an issue @Eagle1337. The error you get is due to a corrupted cache file. Latest commit on master branch improve the way the errors during cache loading are handled, this should not happen again, feel free to reopen this issue if it does.

If you don't want to use the master version of the image, you can also solve your issue by deleting the cache directory.