本帖最后由 lsgf 于 2022-7-18 17:31 编辑
早上还好好的,下午突然就报错了,看好像是key冲突的问题?还有个.GetCachedUserInfo()方法,是因为缓存的问题?比如缓存中的用户信息的key重复冲突了?望各位大佬看看
CurrentMethodName: HandleExceptionAsync
Tid:36 2022/7/18 16:41:27: Request Exception Happened-------------------------------
Path/UserService/GetBasicUserInfo
Tid:36 2022/7/18 16:41:27: Assembly: Forguncy.UserService2, Version=7.0.104.0, Culture=neutral, PublicKeyToken=967100671921c115 -----------
{
"ClassName": "System.ArgumentException",
"Message": "An item with the same key has already been added. Key: 企业发展有限公司,|&销售&商品板块,|&电商销售中心,|&用户增长与运营部",
"Data": null,
"InnerException": null,
"HelpURL": null,
"StackTraceString": " at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at ForguncyUserService.Services.SecurityProviderService.a(List`1 A_0, String A_1, Dictionary`2 A_2)
at ForguncyUserService.Services.SecurityProviderService.a(List`1 A_0, String A_1, Dictionary`2 A_2)
at ForguncyUserService.Services.SecurityProviderService.a(List`1 A_0, String A_1, Dictionary`2 A_2)
at ForguncyUserService.Services.SecurityProviderService.a(List`1 A_0, String A_1, Dictionary`2 A_2)
at ForguncyUserService.Services.SecurityProviderService.f(UserInformations A_0)
at ForguncyUserService.Services.SecurityProviderService.GetCachedUserInfo()
at ForguncyUserService.Services.UserManagerService.GetSecurityProviderBasicUserInfo(String userName)
at Forguncy.UserService2.Controllers.UserServiceController.GetBasicUserInfo(UserIndicatorParam param)
at lambda_method(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
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 where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Forguncy.UserService2.KatanaMiddleware.ControllerMiddleware.InvokeAsync(HttpContext context)
at ForguncyServerCommon.HttpHeaderMiddlewareBase.InvokeAsync(HttpContext context)
at Forguncy.KatanaMiddleware.ExceptionTraceMiddleware.InvokeAsync(HttpContext context)",
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": -2147024809,
"Source": "System.Private.CoreLib",
"WatsonBuckets": null,
"ParamName": null
}
CurrentMethodName: HandleExceptionAsync
Tid:36 2022/7/18 16:41:32: Version Changed By: StopAll
Tid:36 2022/7/18 16:41:32: ForguncyUserServer.ServerAppManager.Version changed to: e554d760-a1e2-451e-88ba-26202131045a
|