CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
207 stars 38 forks source link

Error When Managing Instances #693

Closed IceOfWraith closed 2 years ago

IceOfWraith commented 2 years ago

Bug Report

System Information

I confirm:

Symptoms

The following error appears in the log each time the instance is managed. No noticeable issue in the GUI though:

[21:07:04] [RemoteAMPAuth:Anonymous Activity] : Authentication attempt for user admin from 127.0.0.1
[21:07:04] [RemoteAMPAuth:Anonymous Activity] : Authentication success
[21:07:05] [APIService:admin Warning] : Returned exception from API call Core/GetAMPUsersSummary
[21:07:05] [Core:admin Error]     : ArgumentNullException
[21:07:05] [Core:admin Error]     : [0] (ArgumentNullException) : Value cannot be null.
Parameter name: source
[21:07:05] [Core:admin Error]     :   at Linq.Enumerable.Select[TSource,TResult] (Collections.Generic.IEnumerable`1[T] source, Func`2[T,TResult] selector) 
  at GSMyAdmin.WebServer.WebMethods.GetAMPUsersSummary () 
  at GSMyAdmin.WebServer.WebAttributes.InvokeMethod (String MethodName, Newtonsoft.Json.Linq.JObject Data, m.Http.IHttpRequest request, ModuleShared.IWebSession Session, ModuleShared.WebMethodsBase MethodsClass, String RawRequest) 
  at GSMyAdmin.WebServer.APIService.InvokeAPI (m.Http.IHttpRequest request, ModuleShared.IWebSession Session, Newtonsoft.Json.Linq.JObject Data, String RequestModule, String RequestMethod, String RawRequest) 

Reproduction

Manage a Project Zomboid instance (Happens on others, but this one for sure).

PhonicUK commented 2 years ago

Fixed in latest CI/Nightly