GraphQL 服务器查询请求间歇性失败并出现此异常。相同的请求在下次尝试从 Web 应用程序时成功。关于这个问题的任何想法!
要求 :
{"operationName":"Rtype","variables":{"name":"sample"},"query":"query requestType($name: String!) {
requestType(name: $name) {
id
name
status
types
__typename
}
}
"}
此异常最初是在此调用堆栈中引发的:GraphQLRequestDeserializer 中的 System.Threading.CancellationToken.ThrowOperationCanceledException() GraphQL.Server.Transports.AspNetCore.SystemTextJson.GraphQLRequestDeserializer.PeekJsonTokenTypeAsync(System.IO.Pipelines.PipeReader, System.Threading.CancellationToken)。 cs System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) 系统。 Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task) System.Threading.Tasks.ValueTask.Result.get() System.Runtime.CompilerServices.ValueTaskAwaiter.GetResult() GraphQL.Server.Transports.AspNetCore.SystemTextJson。GraphQLRequestDeserializer.cs System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 中的 GraphQLRequestDeserializer.DeserializeFromJsonBodyAsync(Microsoft.AspNetCore.Http.HttpRequest, System.Threading.CancellationToken)
提前致谢!