远程服务器返回错误:(422)
当我尝试使用
WebResponse response = request.GetResponse()
远程服务器返回错误:(422) 获取 WebResponse 时,出现以下错误。
at System.Net.HttpWebRequest.GetResponse()
at HopSharp.HoptoadClient.Send(HoptoadNotice notice) in D:\Projects\...dClient.cs:line 65
有人知道此异常吗?
I am getting following error when I am trying to get WebResponse using
WebResponse response = request.GetResponse()
The remote server returned an error: (422).
at System.Net.HttpWebRequest.GetResponse()
at HopSharp.HoptoadClient.Send(HoptoadNotice notice) in D:\Projects\...dClient.cs:line 65
Does anyone have idea about this exception?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该异常意味着 Web 服务器响应了错误代码,即 422。您需要与远程站点的管理员联系,了解原因。 (或者查看响应的正文(如果有返回),它可能包含一些提示)。
以下是错误代码 422 的解释: https://www.rfc-editor .org/rfc/rfc4918#section-11.2
您发送到服务器的请求很可能在某种程度上无效。 如果不知道您针对哪个系统发送哪个请求,则无法判断确切的错误可能是什么。
That exception means that the web server responded with an error code, namely 422. You will need to check with the administrator of the remote site, why that might be. (Or look at the body of the response if any was returned, it might include some hints).
Here is the explanation of error code 422: https://www.rfc-editor.org/rfc/rfc4918#section-11.2
The request you are sending to the server is most likely invalid in some way or another. What the exact error might be, is impossible to tell without knowing which request you are sending against which system.