2025-10-10 15:42:42,537 [127] ERROR ApiLog - API接口异常请求:Command/AppFunList参数:{"DeviceId":35174,"IsNewCmdFormat":1,"Language":"en-US","TimeOffset":0.0,"AppId":null} UserAgent:Gtalkie/14 CFNetwork/1399 Darwin/22.1.0服务器时间:2025-10-10 15:42:42 请求Token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJMb2dpbkluZm8iOnsiVXNlcklkIjoxMDA5NzEsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTI1LCJMb2dpbk5hbWUiOiI1MTY0MzUxMzFAcXEuY29tIiwiUmVnSWQiOm51bGwsIlRpbWVPZmZzZXQiOjguMH0sImV4cCI6MTc2MDI1MTY5Ni4wfQ.eC77Bex64jedoQLSdUjEHe-QXCqPdis9ujW3UKF4wk8 ApiLognameSystem.Data.SqlClient.SqlException (0x80131904): 违反了 PRIMARY KEY 约束“PK_DeviceCmdValue”。不能在对象“dbo.DeviceCmdValue”中插入重复键。重复键值为 (35174, 9958)。 语句已终止。 at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at NPoco.Database.ExecuteNonQueryHelper(DbCommand cmd) at NPoco.Database.Execute(String sql, CommandType commandType, Object[] args) at MVCThinkrace.DbAccess.DeviceNewLogic.InsertCmdValue(Int32 id, String value, String cmdcode) in F:\NewWork\DX02_Web\MVCThinrace.Logic\DeviceNewLogic.cs:line 1381 at NewGPS2012.AppApi.Controllers.CommandController.<>c__DisplayClass1_0.b__0(AppSetCode t) in F:\NewWork\DX02_Web\NewGPS2012.AppApi\Controllers\CommandController.cs:line 303 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at NewGPS2012.AppApi.Controllers.CommandController.AppFunList(DeviceCommandListModel model) in F:\NewWork\DX02_Web\NewGPS2012.AppApi\Controllers\CommandController.cs:line 273 at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.b__2(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Web.Http.Filters.ActionFilterAttribute.d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.ActionFilterAttribute.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext() ClientConnectionId:6563c3c6-86f8-4c04-81aa-be71ac61eecf Error Number:2627,State:1,Class:14 2025-10-10 15:54:01,657 [26] ERROR ApiLog - API接口异常请求:Device/GetOnlienDialList参数: UserAgent:Apifox/1.0.0 (https://apifox.com)服务器时间:2025-10-10 15:54:01 请求Token:e ApiLognameJWT.InvalidTokenPartsException: Token must consist of 3 delimited by dot parts. 参数名: token 在 JWT.JwtParts..ctor(String token) 在 JWT.JwtDecoder.Decode(String token) 在 NewGPS2012.AppApi.Code.TokenHelper.get_TokenInfo() 位置 F:\NewWork\DX02_Web\NewGPS2012.AppApi\Code\TokenHelper.cs:行号 88 在 NewGPS2012.AppApi.Attribute.JwtFilter.OnAuthorization(HttpActionContext actionContext) 位置 F:\NewWork\DX02_Web\NewGPS2012.AppApi\Attribute\JwtFilter.cs:行号 35 在 System.Web.Http.Filters.AuthorizationFilterAttribute.OnAuthorizationAsync(HttpActionContext actionContext, CancellationToken cancellationToken) --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext() 2025-10-10 15:54:57,494 [37] ERROR ApiLog - API接口异常请求:Device/GetOnlienDialList参数: UserAgent:Apifox/1.0.0 (https://apifox.com)服务器时间:2025-10-10 15:54:57 请求Token:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJMb2dpbkluZm8iOnsiVXNlcklkIjoxMDA5OTgsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTI1LCJMb2dpbk5hbWUiOiIxMzUxMDkyMjc4NSIsIlJlZ0lkIjpudWxsLCJUaW1lT2Zmc2V0Ijo4LjB9LCJleHAiOjE3NjAyNTU2MjEuMH0.YAzfLIkn2EYL9XREQdOzsP-4RvYHpyMOGlKB2cfAUaE.eyJMb2dpbkluZm8iOnsiVXNlcklkIjoxMDA5OTgsIlVzZXJUeXBlIjowLCJBcHBJZCI6MTI1LCJMb2dpbk5hbWUiOiIxMzUxMDkyMjc4NSIsIlJlZ0lkIjoiIiwiVGltZU9mZnNldCI6OC4wfSwiZXhwIjoxNzU3NDc2MDMzLjB9.OyBKnxGFIQTZQxNyu-i-N8AXoPbYY-0vsmMT0-kZmas ApiLognameJWT.InvalidTokenPartsException: Token must consist of 3 delimited by dot parts. 参数名: token 在 JWT.JwtParts..ctor(String token) 在 JWT.JwtDecoder.Decode(String token) 在 NewGPS2012.AppApi.Code.TokenHelper.get_TokenInfo() 位置 F:\NewWork\DX02_Web\NewGPS2012.AppApi\Code\TokenHelper.cs:行号 88 在 NewGPS2012.AppApi.Attribute.JwtFilter.OnAuthorization(HttpActionContext actionContext) 位置 F:\NewWork\DX02_Web\NewGPS2012.AppApi\Attribute\JwtFilter.cs:行号 35 在 System.Web.Http.Filters.AuthorizationFilterAttribute.OnAuthorizationAsync(HttpActionContext actionContext, CancellationToken cancellationToken) --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Filters.AuthorizationFilterAttribute.d__3.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Web.Http.Controllers.ExceptionFilterResult.d__6.MoveNext()