Closed boppen closed 6 years ago
I don't experience this. It's saying that it thinks the server is returning an error. Does the server log have an error from that time?
You are right, the server log has an error at the same time
[2018-09-29 22:43:21:135] Error|NancyEngine.InvokeOnErrorHook => ErrorPipeline.Invoke => Bootstrapper.onError Nancy Error => System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
at System.Linq.Enumerable.Range(Int32 start, Int32 count)
at Shoko.Server.ShokoServiceImplementation.GetAllYears() in D:\Documents\GitHub\ShokoServer\Shoko.Server\API\v1\Implementations\ShokoServiceImplementation\ShokoServiceImplementation.cs:line 314
--- 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.Rest.Module.RestModule.Route(Object cls, RouteCacheItem ci, Object d) in C:\Users\mpiva\Documents\GIT\Nancy.Rest\Nancy.Rest.Module\RestModule.cs:line 256
at Nancy.Rest.Module.RestModule.<>c__DisplayClass13_0.<MapRoute>b__1(Object o) in C:\Users\mpiva\Documents\GIT\Nancy.Rest\Nancy.Rest.Module\RestModule.cs:line 75
at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)
[2018-09-29 22:43:21:135] Error|NancyEngine.InvokeOnErrorHook => ErrorPipeline.Invoke => Bootstrapper.onError Nancy Error => Request URL: http://127.0.0.1:8111/v1/Years
[2018-09-29 22:43:21:152] Error|NancyEngine.InvokeOnErrorHook => ErrorPipeline.Invoke => Bootstrapper.onError System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: count
at System.Linq.Enumerable.Range(Int32 start, Int32 count)
at Shoko.Server.ShokoServiceImplementation.GetAllYears() in D:\Documents\GitHub\ShokoServer\Shoko.Server\API\v1\Implementations\ShokoServiceImplementation\ShokoServiceImplementation.cs:line 314
--- 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.Rest.Module.RestModule.Route(Object cls, RouteCacheItem ci, Object d) in C:\Users\mpiva\Documents\GIT\Nancy.Rest\Nancy.Rest.Module\RestModule.cs:line 256
at Nancy.Rest.Module.RestModule.<>c__DisplayClass13_0.<MapRoute>b__1(Object o) in C:\Users\mpiva\Documents\GIT\Nancy.Rest\Nancy.Rest.Module\RestModule.cs:line 75
at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)
I don't know if you planned to make another issue in server, but don't worry about it. If you'd like, I can look into it and hand you an unofficial build, but the next release will not be stable for a long while
Question. If you open the Years filter, what years does it list?
Doh, I hit the wrong button. I'm too used with TFS where you have a 'save and close' button which returns you to the list of work items. :)
In the Years filter I see the following years: 1973, 1974, 1985, 1988, 1990-2018
Okay, nothing odd there. I was looking for an edge case.
Okay, I'm gonna post a shady looking zip file. I made a change, and hopefully it will work. Close Server, unpack the zip to anywhere that's not Downloads, and run ShokoServer.exe. If it works, then just overwrite your current C:\Program Files\ShokoServer folder with the contents of it. This is assuming of course that your Server is Windows....
I had another user report this same issue in a different place, and he/she confirmed it fixed. I will close this issue, you may still grab and use that build if you are impatient for a hotfix release.
Server Version: 3.9.3.36320 Desktop Version: 3.9.3.0
I've downloaded and reinstalled both Server and Desktop using the latest stable.
LOG FILE
DESCRIPTION
When trying to add or edit a filter condition I get a 'One or more errors occurred' dialog. After closing it the Group Filter Condition dialog opens, the Condition Type drop down contains all types but the Operator drop down is empty.
STEPS TO REPRODUCE