Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIKey alone or APIKey with aliasname does not allow for requests #3091

Closed
StackTraceYo opened this issue Jul 24, 2019 · 3 comments
Closed

Comments

@StackTraceYo
Copy link

Describe the bug
When trying to post requests to ombi using just the apikey as a header, ombi returns a 500.

To Reproduce
Steps to reproduce the behavior:

  1. post a movie or tv request with the apikey in the headers without the "UserName" header.

Expected behavior
A successfull 200 response

Logs (Logs directory where Ombi is located)
[Error] Something bad happened, ErrorMiddleware caught this
System.ArgumentNullException: Value cannot be null.
Parameter name: user
at Microsoft.AspNetCore.Identity.UserManager`1.IsInRoleAsync(TUser user, String role)
at Ombi.Core.Rule.Rules.Request.AutoApproveRule.Execute(BaseRequest obj) in C:\projects\requestplex\src\Ombi.Core\Rule\Rules\Request\AutoApproveRule.cs:line 27
at Ombi.Core.Rule.RuleEvaluator.StartRequestRules(BaseRequest obj) in C:\projects\requestplex\src\Ombi.Core\Rule\RuleEvaluator.cs:line 42
at Ombi.Core.Engine.Interfaces.BaseEngine.RunRequestRules(BaseRequest model) in C:\projects\requestplex\src\Ombi.Core\Engine\Interfaces\BaseEngine.cs:line 47
at Ombi.Core.Engine.MovieRequestEngine.RequestMovie(MovieRequestViewModel model) in C:\projects\requestplex\src\Ombi.Core\Engine\MovieRequestEngine.cs:line 94
at Ombi.Controllers.RequestController.RequestMovie(MovieRequestViewModel movie) in C:\projects\requestplex\src\Ombi\Controllers\RequestController.cs:line 89
at lambda_method(Closure , Object )
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext)
at Ombi.ApiKeyMiddlewear.ValidateApiKey(HttpContext context, RequestDelegate next, String key) in C:\projects\requestplex\src\Ombi\ApiKeyMiddlewear.cs:line 125
at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\ApiKeyMiddlewear.cs:line 34
at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\ErrorHandlingMiddlewear.cs:line 24

Version 3.0.4659 (New Update Available)
OS Architecture X64
OS Description Linux 5.1.2-xanmod2 #1.190514 SMP PREEMPT Tue May 14 15:42:31 -03 2019
Process Architecture X64
Application Base Path /opt/Ombi

  • The alias header did not work
  • There is only one user and I added the "UserName" header and it worked.
@ombi-bot
Copy link
Contributor

Hi!
Thanks for the issue report. Before a real human comes by, please make sure you used our bug report format.
Have you looked at the wiki yet? https://github.com/tidusjar/ombi/wiki/
Before posting make sure you also read our FAQ.
Make the title describe your issue. Having 'not working' or 'I get this bug' for 100 issues, isn't really helpful.
If we need more information or there is some progress we tag the issue or update the tag and keep you updated.
Thanks!
Ombi Bot.

@tidusjar
Copy link
Member

tidusjar commented Aug 8, 2019

This has been fixed in the develop branch! 🎉 🎈

@tidusjar tidusjar closed this as completed Aug 8, 2019
tidusjar added a commit that referenced this issue Aug 8, 2019
shawngrimes pushed a commit to shawngrimes/ombibot that referenced this issue Oct 5, 2019
shawngrimes pushed a commit to shawngrimes/ombibot that referenced this issue Oct 5, 2019
@al13nus
Copy link

al13nus commented Nov 9, 2019

Got this baby in docker. Cant see any roles, its just empty.

Version 3.0.4872
Branch develop
OS Architecture X64
OS Description Linux 4.14.73-rancher #1 SMP Thu Oct 4 00:19:21 UTC 2018
Process Architecture X64

2019-11-09T13:35:18.393614230Z fail: Ombi.ErrorHandlingMiddleware[0], 2019-11-09T13:35:18.393647096Z Something bad happened, ErrorMiddleware caught this, 2019-11-09T13:35:18.393653514Z System.InvalidOperationException: An exception was thrown while attempting to evaluate a LINQ query parameter expression. To show additional information call EnableSensitiveDataLogging() when overriding DbContext.OnConfiguring. ---> System.NullReferenceException: Object reference not set to an instance of an object., 2019-11-09T13:35:18.393663029Z at lambda_method(Closure ), 2019-11-09T13:35:18.393667588Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.Evaluate(Expression expression, String& parameterName), 2019-11-09T13:35:18.393672165Z --- End of inner exception stack trace ---, 2019-11-09T13:35:18.393676495Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.Evaluate(Expression expression, String& parameterName), 2019-11-09T13:35:18.393681190Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.TryExtractParameter(Expression expression), 2019-11-09T13:35:18.393685953Z at System.Linq.Expressions.MemberExpression.Accept(ExpressionVisitor visitor), 2019-11-09T13:35:18.393690437Z at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node), 2019-11-09T13:35:18.393694881Z at System.Linq.Expressions.ExpressionVisitor.VisitBinary(BinaryExpression node), 2019-11-09T13:35:18.393699328Z at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor), 2019-11-09T13:35:18.393713248Z at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node), 2019-11-09T13:35:18.393718662Z at System.Linq.Expressions.ExpressionVisitor.VisitLambda[T](Expression1 node),
2019-11-09T13:35:18.393722477Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitLambda[T](Expression1 node), 2019-11-09T13:35:18.393728170Z at System.Linq.Expressions.Expression1.Accept(ExpressionVisitor visitor),
2019-11-09T13:35:18.393731896Z at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node),
2019-11-09T13:35:18.393735552Z at System.Linq.Expressions.ExpressionVisitor.VisitUnary(UnaryExpression node),
2019-11-09T13:35:18.393739120Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitUnary(UnaryExpression unaryExpression),
2019-11-09T13:35:18.393743859Z at System.Linq.Expressions.UnaryExpression.Accept(ExpressionVisitor visitor),
2019-11-09T13:35:18.393747780Z at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node),
2019-11-09T13:35:18.393751371Z at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes),
2019-11-09T13:35:18.393755060Z at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node),
2019-11-09T13:35:18.393758626Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression),
2019-11-09T13:35:18.393762619Z at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor),
2019-11-09T13:35:18.393766237Z at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node),
2019-11-09T13:35:18.393770162Z at Microsoft.EntityFrameworkCore.Query.ExpressionVisitors.Internal.ParameterExtractingExpressionVisitor.ExtractParameters(Expression expression),
2019-11-09T13:35:18.393774046Z at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteAsync[TResult](Expression query),
2019-11-09T13:35:18.393778024Z at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1.System.Collections.Generic.IAsyncEnumerable<TResult>.GetEnumerator(), 2019-11-09T13:35:18.393782236Z at System.Linq.AsyncEnumerable.Aggregate_[TSource,TAccumulate,TResult](IAsyncEnumerable1 source, TAccumulate seed, Func3 accumulator, Func2 resultSelector, CancellationToken cancellationToken) in D:\a\1\s\Ix.NET\Source\System.Interactive.Async\Aggregate.cs:line 118,
2019-11-09T13:35:18.393786940Z at Ombi.Controllers.IdentityController.GetPreferences(OmbiUser user) in C:\projects\requestplex\src\Ombi\Controllers\IdentityController.cs:line 918,
2019-11-09T13:35:18.393791171Z at Ombi.Controllers.IdentityController.GetUserPreferences() in C:\projects\requestplex\src\Ombi\Controllers\IdentityController.cs:line 901,
2019-11-09T13:35:18.393795211Z at lambda_method(Closure , Object ),
2019-11-09T13:35:18.393798796Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments),
2019-11-09T13:35:18.393807410Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(),
2019-11-09T13:35:18.393811361Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(),
2019-11-09T13:35:18.393815836Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context),
2019-11-09T13:35:18.393819602Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:18.393823717Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(),
2019-11-09T13:35:18.393827219Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(),
2019-11-09T13:35:18.393830904Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context),
2019-11-09T13:35:18.393834380Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:18.393838363Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(),
2019-11-09T13:35:18.393841966Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(),
2019-11-09T13:35:18.393845749Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:18.393849267Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context),
2019-11-09T13:35:18.393852891Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:18.393876338Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:18.393893753Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51,
2019-11-09T13:35:18.393899587Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24,
2019-11-09T13:35:27.926706685Z fail: Ombi.ErrorHandlingMiddleware[0],
2019-11-09T13:35:27.926730527Z Something bad happened, ErrorMiddleware caught this,
2019-11-09T13:35:27.926734069Z System.ArgumentNullException: Value cannot be null.,
2019-11-09T13:35:27.926736483Z Parameter name: user,
2019-11-09T13:35:27.926739667Z at Microsoft.AspNetCore.Identity.UserManager1.IsInRoleAsync(TUser user, String role), 2019-11-09T13:35:27.926743638Z at Ombi.Core.Engine.Interfaces.BaseEngine.IsInRole(String roleName) in C:\projects\requestplex\src\Ombi.Core\Engine\Interfaces\BaseEngine.cs:line 42, 2019-11-09T13:35:27.926748201Z at Ombi.Core.Engine.BaseMediaEngine.HideFromOtherUsers() in C:\projects\requestplex\src\Ombi.Core\Engine\BaseMediaEngine.cs:line 114, 2019-11-09T13:35:27.926752612Z at Ombi.Core.Engine.MovieRequestEngine.GetRequests(Int32 count, Int32 position, OrderFilterModel orderFilter) in C:\projects\requestplex\src\Ombi.Core\Engine\MovieRequestEngine.cs:line 140, 2019-11-09T13:35:27.926766460Z at Ombi.Controllers.RequestController.GetRequests(Int32 count, Int32 position, Int32 orderType, Int32 statusType, Int32 availabilityType) in C:\projects\requestplex\src\Ombi\Controllers\RequestController.cs:line 54, 2019-11-09T13:35:27.926772005Z at lambda_method(Closure , Object ), 2019-11-09T13:35:27.926775915Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments), 2019-11-09T13:35:27.926779798Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(), 2019-11-09T13:35:27.926782274Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(), 2019-11-09T13:35:27.926784586Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context), 2019-11-09T13:35:27.926787426Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:27.926790348Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(), 2019-11-09T13:35:27.926792610Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(), 2019-11-09T13:35:27.926794944Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context), 2019-11-09T13:35:27.926797310Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:27.926800561Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(), 2019-11-09T13:35:27.926802937Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(), 2019-11-09T13:35:27.926805277Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926807583Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context), 2019-11-09T13:35:27.926809927Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926812230Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926814537Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51, 2019-11-09T13:35:27.926817130Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24, 2019-11-09T13:35:27.926819644Z fail: Ombi.ErrorHandlingMiddleware[0], 2019-11-09T13:35:27.926822121Z Something bad happened, ErrorMiddleware caught this, 2019-11-09T13:35:27.926824448Z System.ArgumentNullException: Value cannot be null., 2019-11-09T13:35:27.926826669Z Parameter name: user, 2019-11-09T13:35:27.926832008Z at Microsoft.AspNetCore.Identity.UserManager1.IsInRoleAsync(TUser user, String role),
2019-11-09T13:35:27.926834581Z at Ombi.Core.Engine.Interfaces.BaseEngine.IsInRole(String roleName) in C:\projects\requestplex\src\Ombi.Core\Engine\Interfaces\BaseEngine.cs:line 42,
2019-11-09T13:35:27.926837164Z at Ombi.Core.Engine.BaseMediaEngine.HideFromOtherUsers() in C:\projects\requestplex\src\Ombi.Core\Engine\BaseMediaEngine.cs:line 114,
2019-11-09T13:35:27.926839602Z at Ombi.Core.Engine.TvRequestEngine.GetRequests(Int32 count, Int32 position, OrderFilterModel type) in C:\projects\requestplex\src\Ombi.Core\Engine\TvRequestEngine.cs:line 136,
2019-11-09T13:35:27.926842138Z at Ombi.Controllers.RequestController.GetTvRequests(Int32 count, Int32 position, Int32 orderType, Int32 statusType, Int32 availabilityType) in C:\projects\requestplex\src\Ombi\Controllers\RequestController.cs:line 217,
2019-11-09T13:35:27.926845508Z at lambda_method(Closure , Object ),
2019-11-09T13:35:27.926849077Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments),
2019-11-09T13:35:27.926853691Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(),
2019-11-09T13:35:27.926857793Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(),
2019-11-09T13:35:27.926861730Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context),
2019-11-09T13:35:27.926865648Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:27.926869571Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(),
2019-11-09T13:35:27.926873497Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(),
2019-11-09T13:35:27.926877239Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context),
2019-11-09T13:35:27.926879830Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:27.926882252Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(),
2019-11-09T13:35:27.926884566Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(),
2019-11-09T13:35:27.926886818Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.926889148Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context),
2019-11-09T13:35:27.926891469Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.926893770Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.926896126Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51,
2019-11-09T13:35:27.926901368Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24,
2019-11-09T13:35:27.926904043Z fail: Ombi.ErrorHandlingMiddleware[0],
2019-11-09T13:35:27.926906460Z Something bad happened, ErrorMiddleware caught this,
2019-11-09T13:35:27.926908686Z System.ArgumentNullException: Value cannot be null.,
2019-11-09T13:35:27.926911010Z Parameter name: user,
2019-11-09T13:35:27.926913223Z at Microsoft.AspNetCore.Identity.UserManager1.IsInRoleAsync(TUser user, String role), 2019-11-09T13:35:27.926915489Z at Ombi.Core.Engine.Interfaces.BaseEngine.IsInRole(String roleName) in C:\projects\requestplex\src\Ombi.Core\Engine\Interfaces\BaseEngine.cs:line 42, 2019-11-09T13:35:27.926918470Z at Ombi.Core.Engine.BaseMediaEngine.HideFromOtherUsers() in C:\projects\requestplex\src\Ombi.Core\Engine\BaseMediaEngine.cs:line 114, 2019-11-09T13:35:27.926920980Z at Ombi.Core.Engine.MusicRequestEngine.GetRequests(Int32 count, Int32 position, OrderFilterModel orderFilter) in C:\projects\requestplex\src\Ombi.Core\Engine\MusicRequestEngine.cs:line 140, 2019-11-09T13:35:27.926923518Z at Ombi.Controllers.MusicRequestController.GetRequests(Int32 count, Int32 position, Int32 orderType, Int32 statusType, Int32 availabilityType) in C:\projects\requestplex\src\Ombi\Controllers\MusicRequestController.cs:line 47, 2019-11-09T13:35:27.926926114Z at lambda_method(Closure , Object ), 2019-11-09T13:35:27.926928311Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments), 2019-11-09T13:35:27.926930741Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(), 2019-11-09T13:35:27.926932983Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(), 2019-11-09T13:35:27.926935328Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context), 2019-11-09T13:35:27.926937631Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:27.926940032Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(), 2019-11-09T13:35:27.926942329Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(), 2019-11-09T13:35:27.926945143Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context), 2019-11-09T13:35:27.926948972Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:27.926952935Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(), 2019-11-09T13:35:27.926956779Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(), 2019-11-09T13:35:27.926960575Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926968060Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context), 2019-11-09T13:35:27.926972385Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926976415Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:27.926979320Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51, 2019-11-09T13:35:27.926981859Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24, 2019-11-09T13:35:27.926984321Z fail: Ombi.ErrorHandlingMiddleware[0], 2019-11-09T13:35:27.926988141Z Something bad happened, ErrorMiddleware caught this, 2019-11-09T13:35:27.926990442Z System.ArgumentNullException: Value cannot be null., 2019-11-09T13:35:27.926992679Z Parameter name: user, 2019-11-09T13:35:27.926994866Z at Microsoft.AspNetCore.Identity.UserManager1.IsInRoleAsync(TUser user, String role),
2019-11-09T13:35:27.926997227Z at Ombi.Core.Engine.Interfaces.BaseEngine.IsInRole(String roleName) in C:\projects\requestplex\src\Ombi.Core\Engine\Interfaces\BaseEngine.cs:line 42,
2019-11-09T13:35:27.926999706Z at Ombi.Core.Engine.BaseMediaEngine.HideFromOtherUsers() in C:\projects\requestplex\src\Ombi.Core\Engine\BaseMediaEngine.cs:line 114,
2019-11-09T13:35:27.927002164Z at Ombi.Core.Engine.TvRequestEngine.GetTotal() in C:\projects\requestplex\src\Ombi.Core\Engine\TvRequestEngine.cs:line 513,
2019-11-09T13:35:27.927004580Z at Ombi.Controllers.RequestController.GetTotalTV() in C:\projects\requestplex\src\Ombi\Controllers\RequestController.cs:line 202,
2019-11-09T13:35:27.927007038Z at lambda_method(Closure , Object ),
2019-11-09T13:35:27.927009277Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments),
2019-11-09T13:35:27.927011740Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(),
2019-11-09T13:35:27.927014077Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(),
2019-11-09T13:35:27.927016414Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context),
2019-11-09T13:35:27.927018726Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:27.927021140Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(),
2019-11-09T13:35:27.927023476Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(),
2019-11-09T13:35:27.927029556Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context),
2019-11-09T13:35:27.927032630Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted),
2019-11-09T13:35:27.927037813Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(),
2019-11-09T13:35:27.927040275Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(),
2019-11-09T13:35:27.927042543Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.927044984Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context),
2019-11-09T13:35:27.927048374Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.927052153Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext),
2019-11-09T13:35:27.927056110Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51,
2019-11-09T13:35:27.927060306Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24,
2019-11-09T13:35:31.069323212Z fail: Ombi.ErrorHandlingMiddleware[0],
2019-11-09T13:35:31.069347439Z Something bad happened, ErrorMiddleware caught this,
2019-11-09T13:35:31.069350612Z System.ArgumentNullException: Value cannot be null.,
2019-11-09T13:35:31.069352975Z Parameter name: user,
2019-11-09T13:35:31.069355308Z at Microsoft.AspNetCore.Identity.UserManager1.GetRolesAsync(TUser user), 2019-11-09T13:35:31.069358414Z at Ombi.Controllers.IdentityController.GetUserWithRoles(OmbiUser user) in C:\projects\requestplex\src\Ombi\Controllers\IdentityController.cs:line 304, 2019-11-09T13:35:31.069361149Z at Ombi.Controllers.IdentityController.GetCurrentUser() in C:\projects\requestplex\src\Ombi\Controllers\IdentityController.cs:line 286, 2019-11-09T13:35:31.069363692Z at lambda_method(Closure , Object ), 2019-11-09T13:35:31.069365978Z at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments), 2019-11-09T13:35:31.069368482Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync(), 2019-11-09T13:35:31.069370880Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync(), 2019-11-09T13:35:31.069373250Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context), 2019-11-09T13:35:31.069375589Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:31.069378177Z at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync(), 2019-11-09T13:35:31.069380489Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter(), 2019-11-09T13:35:31.069382753Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context), 2019-11-09T13:35:31.069393744Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted), 2019-11-09T13:35:31.069396559Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync(), 2019-11-09T13:35:31.069398882Z at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync(), 2019-11-09T13:35:31.069401097Z at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:31.069403309Z at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context), 2019-11-09T13:35:31.069405617Z at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIIndexMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:31.069408493Z at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext), 2019-11-09T13:35:31.069410876Z at Ombi.ApiKeyMiddlewear.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ApiKeyMiddlewear.cs:line 51, 2019-11-09T13:35:31.069413447Z at Ombi.ErrorHandlingMiddleware.Invoke(HttpContext context) in C:\projects\requestplex\src\Ombi\Middleware\ErrorHandlingMiddlewear.cs:line 24,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants