找回密码
 立即注册

QQ登录

只需一步,快速开始

lsgf

初级会员

18

主题

54

帖子

214

积分

初级会员

积分
214
lsgf
初级会员   /  发表于:2022-7-18 17:33  /   查看:1223  /  回复:2
1金币
早上还好好的,下午突然就报错了,看好像是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

最佳答案

查看完整内容

已解决,是公司hr更改了表数据,造成有两个一样的key,冲突了

2 个回复

倒序浏览
最佳答案
最佳答案
lsgf
初级会员   /  发表于:2022-7-18 17:33:26
来自 2#
已解决,是公司hr更改了表数据,造成有两个一样的key,冲突了
回复 使用道具 举报
Lay.Li悬赏达人认证 活字格认证
超级版主   /  发表于:2022-7-19 09:04:19
3#
问题解决了就好~
后边有问题欢迎你继续发帖交流
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部