Error when grabbing from manual search

nzbdrone is crashing when trying to manually search for an episode. I have tested this with several shows and they all seem to be giving the same issue. I’m seeing the following error in the log file:

14-9-22 20:51:41.9|Debug|Parser|Episode Parsed. castle2009 - S05E24
14-9-22 20:51:41.9|Debug|Parser|Language parsed: English
14-9-22 20:51:41.9|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Castle.2009.S05E24.720p.HDTV.X264-DIMENSION
14-9-22 20:51:41.9|Debug|Parser|Quality parsed: HDTV-720p v1
14-9-22 20:51:41.9|Debug|Parser|Release Group parsed: DIMENSION
14-9-22 20:51:41.9|Debug|AcceptableSizeSpecification|Beginning size check for: Castle.2009.S05E24.720p.HDTV.X264-DIMENSION
14-9-22 20:51:41.9|Debug|AcceptableSizeSpecification|Item: Castle.2009.S05E24.720p.HDTV.X264-DIMENSION, meets size constraints.
14-9-22 20:51:41.9|Trace|ConfigService|Unable to find config key ‘enablefaileddownloadhandling’ defaultValue:‘True’
14-9-22 20:51:41.9|Debug|LanguageSpecification|Checking if report meets language requirements. English
14-9-22 20:51:41.9|Debug|NotRestrictedReleaseSpecification|Checking if release contains any restricted terms: Castle.2009.S05E24.720p.HDTV.X264-DIMENSION
14-9-22 20:51:41.9|Trace|ConfigService|Unable to find config key ‘releaserestrictions’ defaultValue:’‘
14-9-22 20:51:41.9|Debug|NotRestrictedReleaseSpecification|No restrictions configured, allowing: Castle.2009.S05E24.720p.HDTV.X264-DIMENSION
14-9-22 20:51:41.9|Debug|QualityAllowedByProfileSpecification|Checking if report meets quality requirements. HDTV-720p v1
14-9-22 20:51:41.9|Debug|QualityAllowedByProfileSpecification|Quality HDTV-720p v1 rejected by Series’ quality profile
14-9-22 20:51:41.9|Trace|ConfigService|Unable to find config key ‘retention’ defaultValue:'0’
14-9-22 20:51:41.9|Debug|RetentionSpecification|Checking if report meets retention requirements. 497
14-9-22 20:51:41.9|Trace|ConfigService|Unable to find config key ‘enablefaileddownloadhandling’ defaultValue:'True’
14-9-22 20:51:41.9|Trace|ConfigService|Unable to find config key ‘blacklistretrylimit’ defaultValue:'1’
14-9-22 20:51:41.9|Debug|DelaySpecification|Ignore delay for searches
14-9-22 20:51:41.9|Debug|HistorySpecification|Skipping history check during search
14-9-22 20:51:41.9|Debug|MonitoredEpisodeSpecification|Skipping monitored check during search
14-9-22 20:51:41.9|Debug|SeriesSpecification|Checking if series matches searched series
14-9-22 20:51:41.9|Debug|DownloadDecisionMaker|Release rejected for the following reasons: [Permanent] Quality rejected by series profile
14-9-22 20:51:45.8|Trace|Scheduler|Pending Tasks: 1
14-9-22 20:51:45.8|Trace|CommandExecutor|Publishing TrackedCommandCleanupCommand
14-9-22 20:51:45.8|Trace|CommandExecutor|TrackedCommandCleanupCommand -> CommandTrackingService
14-9-22 20:51:45.8|Trace|EventAggregator|Publishing CommandExecutedEvent
14-9-22 20:51:45.8|Trace|EventAggregator|CommandExecutedEvent -> TaskManager
14-9-22 20:51:45.8|Trace|TaskManager|Updating last run time for: NzbDrone.Core.Messaging.Commands.Tracking.TrackedCommandCleanupCommand
14-9-22 20:51:45.9|Trace|EventAggregator|CommandExecutedEvent <- TaskManager
14-9-22 20:51:45.9|Trace|EventAggregator|CommandExecutedEvent -> TaskModule
14-9-22 20:51:45.9|Trace|EventAggregator|CommandExecutedEvent <- TaskModule
14-9-22 20:51:45.9|Trace|CommandExecutor|TrackedCommandCleanupCommand <- CommandTrackingService [00:00:00]
14-9-22 20:51:48.9|Trace|NzbDroneErrorPipeline|Handling Exception
14-9-22 20:51:48.9|Fatal|NzbDroneErrorPipeline|Request Failed

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.MissingMethodException: No parameterless constructor defined for this object.
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Nancy.Json.JavaScriptSerializer.ConvertToObject(IDictionary2 dict, Type type) at Nancy.Json.JavaScriptSerializer.ConvertToType(Type type, Object obj) at Nancy.Json.JavaScriptSerializer.ConvertToObject(IDictionary2 dict, Type type)
at Nancy.Json.JavaScriptSerializer.ConvertToType(Type type, Object obj)
at Nancy.Json.JavaScriptSerializer.ConvertToObject(IDictionary2 dict, Type type) at Nancy.Json.JavaScriptSerializer.ConvertToType(Type type, Object obj) at Nancy.Json.JavaScriptSerializer.ConvertToType[T](Object obj) at Nancy.Json.JavaScriptSerializer.Deserialize[T](String input) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Nancy.ModelBinding.DefaultBodyDeserializers.JsonBodyDeserializer.Deserialize(String contentType, Stream bodyStream, BindingContext context) at Nancy.ModelBinding.DefaultBinder.DeserializeRequestBody(BindingContext context) at Nancy.ModelBinding.DefaultBinder.Bind(NancyContext context, Type modelType, Object instance, BindingConfig configuration, String[] blackList) at Nancy.ModelBinding.DynamicModelBinderAdapter.TryConvert(ConvertBinder binder, Object& result) at CallSite.Target(Closure , CallSite , Object ) at Nancy.ModelBinding.ModuleExtensions.Bind[TModel](INancyModule module) at NzbDrone.Api.Indexers.ReleaseModule.<.ctor>b__0(Object x) in m:\BuildAgent2\work\328d72309b633a8\src\NzbDrone.Api\Indexers\ReleaseModule.cs:line 47 at CallSite.Target(Closure , CallSite , Func2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

14-9-22 20:51:54.2|Trace|EventAggregator|Publishing UpdateQueueEvent
14-9-22 20:51:54.2|Trace|EventAggregator|UpdateQueueEvent -> QueueModule
14-9-22 20:51:54.2|Trace|EventAggregator|UpdateQueueEvent <- QueueModule

Which version of drone?
Which OS?

Searching for that same episode on Windows 8 and the latest development version of drone (2.0.0.2024), I don’t see this issue.

Windows 8.1

NzbDrone Ver. 2.0.0.2024
develop

Any idea what could be causing that error? This started happening today, possibly after the latest update. It was working fine yesterday.

I have mono version 3.2.1

Anyone else seeing the same issue?

Here is the log:

Running 2.0.0.2024 on Ubuntu with mono 3.2.1

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.MissingMethodException: Default constructor not found for type NzbDrone.Core.Qualities.Revision
at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00000] in :0
at Nancy.Json.JavaScriptSerializer.ConvertToObject (IDictionary2 dict, System.Type type) [0x00000] in <filename unknown>:0 at Nancy.Json.JavaScriptSerializer.ConvertToType (System.Type type, System.Object obj) [0x00000] in <filename unknown>:0 at Nancy.Json.JavaScriptSerializer.ConvertToObject (IDictionary2 dict, System.Type type) [0x00000] in :0
at Nancy.Json.JavaScriptSerializer.ConvertToType (System.Type type, System.Object obj) [0x00000] in :0
at Nancy.Json.JavaScriptSerializer.ConvertToObject (IDictionary2 dict, System.Type type) [0x00000] in <filename unknown>:0 at Nancy.Json.JavaScriptSerializer.ConvertToType (System.Type type, System.Object obj) [0x00000] in <filename unknown>:0 at Nancy.Json.JavaScriptSerializer.ConvertToType[ReleaseResource] (System.Object obj) [0x00000] in <filename unknown>:0 at Nancy.Json.JavaScriptSerializer.Deserialize[ReleaseResource] (System.String input) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0012f> at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a> at Nancy.ModelBinding.DefaultBodyDeserializers.JsonBodyDeserializer.Deserialize (string,System.IO.Stream,Nancy.ModelBinding.BindingContext) <0x001e3> at Nancy.ModelBinding.DefaultBinder.DeserializeRequestBody (Nancy.ModelBinding.BindingContext) <0x0032b> at Nancy.ModelBinding.DefaultBinder.Bind (Nancy.NancyContext,System.Type,object,Nancy.ModelBinding.BindingConfig,string[]) <0x003af> at Nancy.ModelBinding.DynamicModelBinderAdapter.TryConvert (System.Dynamic.ConvertBinder,object&) <0x00072> at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object) <0x000f3> at Nancy.ModelBinding.ModuleExtensions.Bind<NzbDrone.Api.Indexers.ReleaseResource> (Nancy.INancyModule) <0x000db> at NzbDrone.Api.Indexers.ReleaseModule.<.ctor>b__0 (object) <0x0001f> at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,System.Func2<object, object>,object) <0x000a0>
at Nancy.Routing.Route/<>c__DisplayClass4.b__3 (object,System.Threading.CancellationToken) <0x0012f>

I’ve merged the two topics and renamed it a more fitting title. For next time, please provide more details as to when its happening, because on first look at manual search it was fine.

I have found the issue and will have a fix for it soon.

Thanks for reporting the issue.

Was just coming to report this myself - assuming it’s the same error. Any manual search followed by an attempt to add the nzb to Sab gives notification of:

[POST] Internal Server Error : /api/release

Definitely seemed to start happening after the last update on the development branch as far as I could tell, as manual search/add was working earlier this evening!

Thanks as ever for the great work!

And it’s fixed. Fantastic, thanks!

Thanks for the quick fix!

Will remember to get as many details as possible next time.