Error on API call: /wanted/missing

Hi,

I’m trying to use the Sonarr API to get the list of wanted/missing episodes (/api/wanted/missing), and I’m getting the following error:

URL: 192.168.0.3:8989/api/wanted/missing?page=1&apikey=xxxxx

Error:

{
“message”: “De objectverwijzing is niet op een exemplaar van een object ingesteld.”,
“description”: “System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld.
bij NzbDrone.Core.Datastore.Extensions.PagingSpecExtensions.CreateExpression[TModel](String propertyName) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Datastore\Extensions\PagingSpecExtensions.cs:regel 32
bij NzbDrone.Core.Tv.EpisodeRepository.GetMissingEpisodesQuery(PagingSpec1 pagingSpec, DateTime currentTime, Int32 startingSeasonNumber) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Core\\Tv\\EpisodeRepository.cs:regel 199 bij NzbDrone.Core.Tv.EpisodeRepository.EpisodesWithoutFiles(PagingSpec1 pagingSpec, Boolean includeSpecials) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Tv\EpisodeRepository.cs:regel 112
bij NzbDrone.Core.Tv.EpisodeService.EpisodesWithoutFiles(PagingSpec1 pagingSpec) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Core\\Tv\\EpisodeService.cs:regel 139 bij NzbDrone.Api.Wanted.MissingModule.<GetMissingEpisodes>b__1(PagingSpec1 v) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Api\Wanted\MissingModule.cs:regel 39
bij NzbDrone.Api.NzbDroneRestModule1.ApplyToPage[TModel](Func2 function, PagingSpec1 pagingSpec) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Api\\NzbDroneRestModule.cs:regel 53 bij NzbDrone.Api.Wanted.MissingModule.GetMissingEpisodes(PagingResource1 pagingResource) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Api\Wanted\MissingModule.cs:regel 22
bij NzbDrone.Api.REST.RestModule1.<set_GetResourcePaged>b__d(Object options) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Api\\REST\\RestModule.cs:regel 126 bij CallSite.Target(Closure , CallSite , Func2 , Object )
bij Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)”
}

The first line is dutch for “Object reference is not set to an instance of an object”.

Any help would be appreciated, thanks.

Peter

You’re missing a few of the required parameters:

Hi Markus,

I had tried supplying the other parameters as well, but I guess I made a typo somewhere, because it’s working fine now :smiley:

Thanks!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.