-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error parsing plex tv library - Malformed UTF-8 characters, possibly incorrectly encoded '}' At position 0. #68
Comments
Hmm, it seems to be able to parse your movies libraries fine and choke on your tv library, is your frontend server for plex doing compression? could you try running the following commands and then try to sync docker exec -ti watchstate console servers:edit --key 'options.client.headers.Accept-Encoding' --set '' -- plx
docker exec -ti watchstate console servers:edit --key 'options.client.http_version' --set '1.0' -- plx |
My server sits behind a reverse proxy, Caddy. My current set is as below using http and when I ran those commands, I get the same error. Here is my servers.yaml
|
Alright, could you please try running this command to see plex response, it seems something happening in tv response, curl -v -H "Accept: application/json" -H "X-Plex-Token: YOUR_PLEX_TOKEN_HERE" 'http://192.168.2.107:32400/library/sections/4/all?type=4&sort=addedAt:asc&includeGuids=1' 2>&1 | tee response.log it should save a log in your directory called response.log, please edit the log to remove your plex token, after that please attached it here or send it to me at (ws-contact at arabcoders.net) i need to see the response headers and body from plex to determine why the json parser is failing on this specific library. |
Ok. Just sent you the response log via email. |
I've successfully parsed your given response, the only thing i noticed that might be a problem is there is invalid UTF-8 characters in your payload. i can probably fix that, and you are still using the old plex agents. which most likely will cause you problems in the future however they are "kinda" supported right now i'll see what i can do. i'll let you know once i have something hopefully by later today or tomorrow. |
i pushed possible fix for this issue, in an hour i want you to switch to |
Ok. Will try and report back in an hour. I checked my plex agents and they seem to be using the new agents. There is no option to upgrade like stated in the plx server site. My agents are.. The TV agent is : Plex TV Series and movies is : Plex Movie. Are these are the correct agents? Thx |
Indeed those are correct new agents, however it seems you possibly forgot to run full meta refresh on library. Anyway, the dev build is out try now and report back if it fixes your problem. |
I've refreshed my Plex libraries and downloaded new dev image. But still same. Also ran db list against plx server, and see a small set of watched status. Any way to get a count from db and compare plx vs jellyfin?
|
Ok, i pushed another fix to dev-latest should be done building in <30min after that pull restart and try again. if that also does not work, im afraid im out of ideas it's clearly one an item that is not valid UTF as you can see from the log it can parse some items and then bails. |
it seems this file "/home/media/TVShows/Show.Title/Season.04/ShowTitle s04e20 - Vis � Vis NTSC DVD x264 DD5.1-JCH.mkv" causing the problems. it's the character between vis and Vis it's incorrectly encoded do you not use media manger like sonarr ? Star Trek: Voyager S04E20 |
nevermind, please try next build. it seems i messed up. |
@MagnuM2K the new builds are out, please try and report again pull and restart and try to import, now it should ONLY ignore the malformed item instead of bailing out completely on all other items. |
That seemed to have done the trick. Thx! |
Np. glad it worked for you. |
Hi
When I try to execute the first command to pull watchstate.. I get the following error. Unable to proceed further.
The text was updated successfully, but these errors were encountered: