Mono version (if Sonarr is not running on Windows): N/A
OS: Windows 2012 R2
((Debug logs)): NzbDroneErrorPipeline
Request Failed. POST /api/series: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at NzbDrone.Core.Tv.SeriesTitleSlugValidator.<>c__DisplayClass2_0.b__0(Series s) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\SeriesTitleSlugValidator.cs:line 22
at System.Collections.Generic.List1.FindIndex(Int32 startIndex, Int32 count, Predicate1 match)
at NzbDrone.Core.Tv.SeriesTitleSlugValidator.IsValid(PropertyValidatorContext context) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\SeriesTitleSlugValidator.cs:line 22
at FluentValidation.Validators.PropertyValidator.Validate(PropertyValidatorContext context) in C:\projects\FluentValidation\src\FluentValidation\Validators\PropertyValidator.cs:line 79
at FluentValidation.Internal.PropertyRule.InvokePropertyValidator(ValidationContext context, IPropertyValidator validator, String propertyName) in C:\projects\FluentValidation\src\FluentValidation\Internal\PropertyRule.cs:line 368
at FluentValidation.Internal.PropertyRule.d__60.MoveNext() in C:\projects\FluentValidation\src\FluentValidation\Internal\PropertyRule.cs:line 242
at System.Linq.Enumerable.d__162.MoveNext() at System.Collections.Generic.List1âŚctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at FluentValidation.AbstractValidator1.Validate(ValidationContext1 context) in C:\projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 114
at FluentValidation.AbstractValidator1.Validate(T instance) in C:\projects\FluentValidation\src\FluentValidation\AbstractValidator.cs:line 95 at NzbDrone.Core.Tv.AddSeriesService.AddSeries(Series newSeries) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Tv\AddSeriesService.cs:line 58 at NzbDrone.Api.Series.SeriesModule.AddSeries(SeriesResource seriesResource) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\Series\SeriesModule.cs:line 119 at NzbDrone.Api.REST.RestModule1.<set_CreateResource>b__41_0(Object options) in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Api\REST\RestModule.cs:line 155
at CallSite.Target(Closure , CallSite , Func`2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)
Description of issue: Canât add new series, see single error in log above.
Ok, In the early days there was a problem with the interaction between PlexRequests and Sonarr causing certain series to be added to the database without the title-slug (For the Series âMy Fantastic Showâ the slug is âmy-fantastic-showâ), at least thatâs our theory, coz in one or two versions back we fixed that.
This is causing conflicts, coz Sonarr is checking whether any series already exists with the same slug, but fails when it runs into a series without any slug at all.
Usually the affected series have been removed from tvdb, otherwise Sonarr would have repaired it during the periodic Update Library/Series Refresh.
Check System->Logs for any errors like:
Series âMy Fantastic Showâ (tvdbid 12345) was not found, it may have been removed from TheTVDB.`
Now, you can remove the corrupted show, but you cannot enter the series overview page, instead you have to use the series table with the small wrench icon, to get to the series details with the Delete button:
Alternatively you could simply check the sqlite database that Sonarr stores itâs data in.
Perfect, browsed the series table in the SQLite DB and found three entries that had no slug⌠removed them via the gui using the method you suggested and Iâm now able to add series. Thanks so much!
Sorry, my logs donât go far back enough, and I didnât copy the DB before I applied the changes through the GUI but Iâm 99% sure they were done through PlexRequests.
Hi, I am experiencing the same issue. I added a show via plex requests and see this in the logs: Request Failed. POST /api/series: Object reference not set to an instance of an object.
I do NOT see this in the logs
Series 'My Fantastic Show' (tvdbid 12345) was not found, it may have been removed from TheTVDB.`
I also cannot find the series when browsing the series table. I cannot manually add the series either.
You wouldnât see that series unless you previously added it, there is likely another series with that issue, refreshing all series and looking at the logs for it may have been removed from TheTVDB should indicate which series it is.