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

Errors from Sonarr: 'Tvdb Id' must be greater than '0'. #428

Closed
Magikarplvl4 opened this issue Jul 16, 2016 · 3 comments
Closed

Errors from Sonarr: 'Tvdb Id' must be greater than '0'. #428

Magikarplvl4 opened this issue Jul 16, 2016 · 3 comments

Comments

@Magikarplvl4
Copy link
Contributor

Magikarplvl4 commented Jul 16, 2016

After request the tv show Marcella, you get the error Errors from Sonarr: 'Tvdb Id' must be greater than '0'.
Following error:
image

Plex Requests.Net Version:

1.8.3 (I didn't update yet)

Operating System:

Windows 10 pro 64bit

Mono Version:

Applicable Logs (from /logs/ directory or the Admin page):

'Tvdb Id' must be greater than '0'. PlexRequests.Api.SonarrApi  Error   7/16/2016 11:33:11 PM
Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'PlexRequests.Api.Models.Sonarr.SonarrAddSeries' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly. To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array. Path '', line 1, position 1. at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract(JsonReader reader, Type objectType, JsonContract contract) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(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 PlexRequests.Api.ApiRequest.ExecuteJson[T](IRestRequest request, Uri baseUri) in C:\projects\requestplex\PlexRequests.Api\ApiRequest.cs:line 123 at PlexRequests.Api.SonarrApi.<>c__DisplayClass7_1.b__2() in C:\projects\requestplex\PlexRequests.Api\SonarrApi.cs:line 116 at Polly.Policy.<>c__DisplayClass8_0`1.b__0() at Polly.Retry.RetryEngine.Implementation(Action action, IEnumerable`1 shouldRetryPredicates, Func`1 policyStateFactory) at Polly.RetrySyntax.<>c__DisplayClass13_0.b__0(Action action, Context context) at Polly.Policy.Execute[TResult](Func`1 action, Context context) at PlexRequests.Api.SonarrApi.AddSeries(Int32 tvdbId, String title, Int32 qualityId, Boolean seasonFolders, String rootPath, Int32 seasonCount, Int32[] seasons, String apiKey, Uri baseUrl) in C:\projects\requestplex\PlexRequests.Api\SonarrApi.cs:line 116 PlexRequests.Api.SonarrApi  Error   7/16/2016 11:33:11 PM
Exception when calling AddSeries for Sonarr, Retrying 00:00:10  PlexRequests.Api.SonarrApi  Error   7/16/2016 11:33:01 PM
Exception when calling AddSeries for Sonarr, Retrying 00:00:05  PlexRequests.Api.SonarrApi  Error   7/16/2016 11:32:56 PM
Exception when calling AddSeries for Sonarr, Retrying 00:00:02  PlexRequests.Api.SonarrApi  Error   7/16/2016 11:32:54 PM

Reproduction Steps:

Do a request for the tv show Marcella 2016

@tidusjar
Copy link
Member

This would be because of TvMaze. TVMaze doesn't have an TvDb Id for this show yet... I'm looking at somehow having a fallback for when this happens.

@Magikarplvl4
Copy link
Contributor Author

Hmm can you call this a bug?

@tidusjar
Copy link
Member

It's not a bug from Plex requests but more of a data issue on TVMaze, but I could handle it better in PlexRequests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants