Ombi: Unexpected Character

Created on 11 Mar 2020  路  19Comments  路  Source: tidusjar/Ombi

Describe the bug
Ombi appears unable to access the movies library in plex.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Ombi'
  2. Click on 'run sync'
  3. See error

Expected behavior
Successfully sync movies.

Screenshots
If applicable, add screenshots to help explain your problem.

info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0],
Starting Plex Content Cacher,
info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0],
Starting to cache the content on server RayFlex,
fail: Ombi.Api.Api[1000],
StatusCode: NotFound, Reason: Not Found, RequestUri: http://plex:32400/library/metadata/4059,
fail: Ombi.Schedule.Jobs.Plex.PlexContentSync[2008],
Exception when adding new Movie Ant-Man,
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.,
at Newtonsoft.Json.JsonTextReader.ParseValue(),
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter),
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent),
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType),
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings),
at Newtonsoft.Json.JsonConvert.DeserializeObjectT,
at Ombi.Api.Api.RequestT in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78,
at Ombi.Api.Plex.PlexApi.GetMetadata(String authToken, String plexFullHost, Int32 itemId) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 159,
at Ombi.Schedule.Jobs.Plex.PlexContentSync.ProcessServer(PlexServers servers, Boolean recentlyAddedSearch) in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 264,
fail: Ombi.Api.Api[1000],
StatusCode: NotFound, Reason: Not Found, RequestUri: http://plex:32400/library/metadata/4814,
fail: Ombi.Schedule.Jobs.Plex.PlexContentSync[2008],
Exception when adding new Movie Guardians of the Galaxy,
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.,
at Newtonsoft.Json.JsonTextReader.ParseValue(),
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter),
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent),
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType),
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings),
at Newtonsoft.Json.JsonConvert.DeserializeObjectT,
at Ombi.Api.Api.RequestT in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78,
at Ombi.Api.Plex.PlexApi.GetMetadata(String authToken, String plexFullHost, Int32 itemId) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 159,
at Ombi.Schedule.Jobs.Plex.PlexContentSync.ProcessServer(PlexServers servers, Boolean recentlyAddedSearch) in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 264,
info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0],
Starting EP Cacher,
info: Ombi.Schedule.Jobs.Plex.PlexContentSync[0],
Finished Plex Content Cacher, with processed content: 0, episodes: 0. Recently Added Scan: False,
info: Ombi.Schedule.Jobs.Plex.PlexEpisodeSync[2002],
Total Epsiodes found for TV Shows = 31111,

If applicable, a snippet of the logs that seems relevant to the bug if present.

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Ombi Version (please complete the following information):

  • Version 3.0.4892

    • Media Server Plex

Additional context
Add any other context about the problem here.

wontfix

All 19 comments

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

Looks like something is wrong with the metadata in the Plex DB for your instance. Can you delete your ombi external .db and then re-run the sync? Just to rule out Ombi

I had a similar error in my log. (not using plex). Deleting the external db fixed it for me. thx

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Is there a way to increase logging to know which character is the problematic one ?
have this issue as well, deleting the external database didnt helped much.

I am also seeing this problem. Deleting the external db and running a full resync results in the same error. TV shows sync works but Movie sync fails.

I too am getting the exact same error

OS - Ubuntu 18

I deleted the OmbiExternal.db with no success

The fix is to upgrade to the latest plex server, then refresh all metadata on your libraries.

The "new" plex agent was missing imdb and moviedb IDs or something, and has been added back in with recent plex releases. When you refresh your metadata it'll grab those, and ombi will work again.

ok, I did just upgrade plex this morning. I will try that.

I refreshed all my libraries but I am still having the same issue

i'm having the same issue but trying to connect my ombi to sickchill.

I am having this issue and my new plex server was set up last week with all new metadata (fresh scan) and ombi was only set up today.

Double checked by refreshing all metadata for Movies in Plex, deleting the external db and forcing a sync, and same issue happens again.

Same issues:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: [. Path 'MediaContainer.Metadata[0].Guid', line 1, position 5252. at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsString() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78 at Ombi.Api.Plex.PlexApi.GetMetadata(String authToken, String plexFullHost, Int32 itemId) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 159 at Ombi.Schedule.Jobs.Plex.PlexContentSync.ProcessServer(PlexServers servers, Boolean recentlyAddedSearch) in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 264 fail: Ombi.Schedule.Jobs.Plex.PlexContentSync[2008] Exception when adding new Movie removed Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: [. Path 'MediaContainer.Metadata[0].Guid', line 1, position 3811. at Newtonsoft.Json.JsonTextReader.ReadStringValue(ReadType readType) at Newtonsoft.Json.JsonTextReader.ReadAsString() at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings) at Ombi.Api.Api.Request[T](Request request) in C:\projects\requestplex\src\Ombi.Api\Api.cs:line 78 at Ombi.Api.Plex.PlexApi.GetMetadata(String authToken, String plexFullHost, Int32 itemId) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 159 at Ombi.Schedule.Jobs.Plex.PlexContentSync.ProcessServer(PlexServers servers, Boolean recentlyAddedSearch) in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 264

@tidusjar - Can you re-open this? Not sure if it is getting attention since it was closed :D

Same error as https://github.com/tidusjar/Ombi/issues/3420#issuecomment-716484846 here. :/
Fresh install - have recreated external DB and dumped/imported Plex DB in case of trouble, but no dice or signs of other issues. Manual marking it is.

Latest Plex version, and specifically movie library - TV shows seem fine for whatever reason

I'm also having this exact issue. Large library, Ombi uses 100% cpu for 40mins every hour. This is just terrible.

Add me to the list having the same problem. I deleted OmbiExternal.db, and re-ran the Plex sync. The logs are filled with this error.

Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: [. Path 'MediaContainer.Metadata[0].Guid', line 1, position 3059.

..
at Ombi.Api.Plex.PlexApi.GetMetadata(String authToken, String plexFullHost, Int32 itemId) in C:\projects\requestplex\src\Ombi.Api.Plex\PlexApi.cs:line 159
   at Ombi.Schedule.Jobs.Plex.PlexContentSync.ProcessServer(PlexServers servers, Boolean recentlyAddedSearch) in C:\projects\requestplex\src\Ombi.Schedule\Jobs\Plex\PlexContentSync.cs:line 264

I removed my Plex server from Ombi, and re-added it. Same problem.

Plex v1.21.0.3616
Ombo v3.0.5223.

This looks like a duplicate of #3726

Update to V4, it's been fixed there.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EricHupp picture EricHupp  路  4Comments

YodaSpow picture YodaSpow  路  4Comments

arm3n picture arm3n  路  3Comments

PotatoQuality picture PotatoQuality  路  3Comments

anderson115 picture anderson115  路  5Comments