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

Can't load log page #1790

Closed
mregni opened this issue May 24, 2022 · 0 comments
Closed

Can't load log page #1790

mregni opened this issue May 24, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mregni
Copy link
Owner

mregni commented May 24, 2022

"EXCEPTIONS.UNHANDLED" toast is displayed when opening the log page. Seems like a missing auto mapper profile

[2022-05-24 09:25:41.452] [EmbyStat.Common.Exceptions.BusinessExceptionFilterAttribute]  [ERR] Exception occured
AutoMapper.AutoMapperMappingException: Error mapping types.

Mapping types:
List`1 -> IList`1
System.Collections.Generic.List`1[[EmbyStat.Services.Models.Logs.LogFile, EmbyStat.Services, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.IList`1[[EmbyStat.Controllers.Log.LogFileViewModel, EmbyStat.Controllers, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]
 ---> AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Mapping types:
LogFile -> LogFileViewModel
EmbyStat.Services.Models.Logs.LogFile -> EmbyStat.Controllers.Log.LogFileViewModel
   at lambda_method845(Closure , LogFile , LogFileViewModel , ResolutionContext )
   at lambda_method844(Closure , Object , IList`1 , ResolutionContext )
   --- End of inner exception stack trace ---
   at lambda_method844(Closure , Object , IList`1 , ResolutionContext )
   at EmbyStat.Controllers.Log.LogController.GetLogFileList()
   at lambda_method842(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

@mregni mregni added the bug Something isn't working label May 24, 2022
@mregni mregni self-assigned this May 24, 2022
mregni added a commit that referenced this issue May 30, 2022
mregni added a commit that referenced this issue May 30, 2022
@mregni mregni closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant