当我通过邮递员发帖时,我收到此错误。 其他方法完美无缺。只是这种解决用户验证的方法及其响应是访问令牌,有错误。
我认为字符串标记的长度是错误的起源。
发布男子回复:
"StackTrace": " at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n at System.Threading.Tasks.Task`1.get_Result()\r\n at FactoryJaApi.Controllers.UserController.<Login>d__14.MoveNext() \r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at
Factory.Aajat.CompilerServices.TaskAwaiter`1.GetResult()\ r \ n在FactoryJaApi.Controllers.UserController.d__12.MoveNext()“TargetSite”:{“Name”:“ThrowIfExceptional”,“AssemblyName”:“mscorlib,Version = 4.0.0.0,文化=中立,
"ClassName": "System.Threading.Tasks.Task",
"Signature": "Void ThrowIfExceptional(Boolean)",
"Signature2": "System.Void ThrowIfExceptional(System.Boolean)",
"MemberType": 8,
"GenericArguments": null
},
"ErrorLine": null,
"ExceptionType": "System.AggregateException",
"ExceptionUrl": null,
"InnerException": {
"DateTime": "0001-01-01T00:00:00",
"Message": "An error occurred while sending the request.",
"HelpLink": null,
"Source": null,
"StackTrace": null,
"TargetSite": null,
"ErrorLine": null,
"ExceptionType": null,
"ExceptionUrl": null,
"InnerException": {
"DateTime": "0001-01-01T00:00:00",
"Message": "Unable to connect to the remote server",
"HelpLink": null,
"Source": null,
"StackTrace": " at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)\r\n at System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)",
"TargetSite": null,
"ErrorLine": null,
"ExceptionType": null,
"ExceptionUrl": null,
"InnerException": null
}
}
}
}
感谢大家,你的信息对我没有帮助,并且远非我的要求。我指出这个错误恰好在验证和生成令牌字符串方法时发生。和其他方法完美正确地工作。
令牌方法本身具有自我查询。因此,当您的查询转到服务器Kaarix.work时,IIS无法从内部访问相同的地址。 for Solving:只需要定义重定向local url
并重定向从机器内部调用的查询。
如果您需要答案,请参阅屏幕截图。