I test both and they work, but when I try to save i get… couldn’t save notification
My log:
13-12-19 13:13:02.5|Fatal|NzbDroneErrorPipeline|Request Failed
System.ArgumentException: Object of type ‘System.Int64’ cannot be converted to type ‘System.Int32’.
at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at NzbDrone.Api.ClientSchema.SchemaBuilder.ReadFormSchema(List1 fields, Type targetType) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ClientSchema\\SchemaBuilder.cs:line 100 at NzbDrone.Api.ProviderModuleBase
3.GetDefinition(TProviderResource providerResource) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\ProviderModuleBase.cs:line 85
at NzbDrone.Api.ProviderModuleBase3.CreateProvider(TProviderResource indexerResource) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ProviderModuleBase.cs:line 64 at NzbDrone.Api.REST.RestModule
1.<set_CreateResource>b__f(Object options) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.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)
Duumke
December 19, 2013, 12:57am
2
It’s not only Pushover/Growl… When I try to add an XBMC connection it failes with the following in the logs:
Details
Message
Request Failed: Object of type ‘System.Int64’ cannot be converted to type ‘System.Int32’.
Exception
System.ArgumentException: Object of type ‘System.Int64’ cannot be converted to type ‘System.Int32’.
at System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.MethodBase.CheckArguments(Object[] parameters, Binder binder, BindingFlags invokeAttr, CultureInfo culture, Signature sig)
at System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index)
at NzbDrone.Api.ClientSchema.SchemaBuilder.ReadFormSchema(List1 fields, Type targetType) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ClientSchema\\SchemaBuilder.cs:line 100 at NzbDrone.Api.ProviderModuleBase
3.GetDefinition(TProviderResource providerResource) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.Api\ProviderModuleBase.cs:line 85
at NzbDrone.Api.ProviderModuleBase3.CreateProvider(TProviderResource indexerResource) in m:\\BuildAgent2\\work\\328d72309b633a8\\src\zbDrone.Api\\ProviderModuleBase.cs:line 64 at NzbDrone.Api.REST.RestModule
1.<set_CreateResource>b__f(Object options) in m:\BuildAgent2\work\328d72309b633a8\src\zbDrone.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)
Thanks for reporting this, pretty major issue caused by an incorrect if/else block. Its fixed now and I have added tests to prevent issues such as this from slipping through again.
Due to the severity its available in both develop and master immediately.
Duumke
December 19, 2013, 5:51am
4
Thank you very much for the quick fix of this bug.
I’ve just tested by creating a connection to XBMC and it works again.