安子 发表于 2024-7-24 14:22:52

发布时错误

本帖最后由 安子 于 2024-7-25 14:20 编辑












时间14:18:38

日志类型
其他日志

@x
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: A. Path '', line 0, position 0.   at Newtonsoft.Json.JsonTextReader.ParseValue()   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value)   at Forguncy.KatanaMiddleware.HttpRequestExtension.b(HttpRequest A_0)   at Forguncy.KatanaMiddleware.HttpRequestExtension.GetRequestDataAsync(HttpRequest request)   at Forguncy.KatanaMiddleware.b.a(HttpContext A_0, Exception A_1)   at Forguncy.KatanaMiddleware.b.InvokeAsync(HttpContext context)   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)   at IdentityServer4.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events, IBackChannelLogoutService backChannelLogoutService)   at IdentityServer4.Hosting.MutualTlsEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)   at IdentityServer4.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)   at Forguncy.UserService2.KatanaMiddleware.ManagementPageMiddleware.InvokeAsync(HttpContext context)   at CommonUtilities.LogHelper.HttplogMiddleware.Invoke(HttpContext httpContext)   at Microsoft.AspNetCore.Server.HttpSys.RequestContext`1.ExecuteAsync()   at Microsoft.AspNetCore.Server.HttpSys.RequestContext`1.ExecuteAsync()

EventId


SourceContext
Microsoft.AspNetCore.Server.HttpSys.HttpSysListener

RequestPath
/UserService/Publish/Publish

Message
ProcessRequestAsync

请求Id
8000002c-000c-ff00-b63f-84710c7967bb

Erik.Xue 发表于 2024-7-24 17:50:24

您好,这种报错不好判断具体的问题原因,最好收集下服务管理器日志上传这边具体看下~


一看就会,超有用活字格技能:四十五,错误日志收集功能
https://gcdn.grapecity.com.cn/showtopic-52854-1-1.html
(出处: 葡萄城开发者社区)


页: [1]
查看完整版本: 发布时错误