2015-05-01 80 views
-2

当我尝试使用应用程序构建应用程序注册帐户时收到此错误。我可以知道这个错误是什么意思吗?谢谢!iOS应用程序注册错误

BaseNetworkManager.m:164 Error Domain=AFNetworkingErrorDomain Code=-1011 
"Expected status code in (200-299), got 500" UserInfo=0x16d30560 
{NSLocalizedRecoverySuggestion=meta http-equiv="refresh" content="0; 
url =websitelink.error.html" 


AFNetworkingOperationFailingURLRequestErrorKey=NSMutableURLRequest: 0x16670d80> { URL: mywebsite/users.json }, NSErrorFailingURLKey=h mywebsite.com/users.json, NSLocalizedDescription=Expected status code in (200-299), got 500, AFNetworkingOperationFailingURLResponseErrorKey=<NSHTTPURLResponse: 0x1669fe20> { URL: mywebsite.com/users.json } { status code: 500, headers { 
    Connection = "keep-alive"; 
    "Content-Length" = 690; 
    "Content-Type" = "text/html; charset=utf-8"; 
    Date = "Fri, 01 May 2015 12:37:44 GMT"; 
    Server = Cowboy; 
    Status = "500 Internal Server Error"; 
    Via = "1.1 vegur"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = "tyud"; 
    "X-Runtime" = "5.087065"; } }} 
2015-05-01 20:37:45.002 appname[1677:60b] <BaseNetworkManager.m:165> (null) 
+0

错误消息实际上是这么说的。你需要真正提出一个问题。 – Michael

+0

嗨迈克尔,我想我没有写得很好。我有更新我的问题。谢谢 –

回答

0

服务器告诉你

500 Internal Server Error 

这意味着服务器有问题,是不是你的错。 (除非你是一个谁是负责的服务器。)

HTTP 200..299的意思是“OK”
HTTP 300..399意味着“看其他地方”
HTTP 400..499的意思是“您的请求存在问题。“例如404 =文件没有找到,403 =禁等
HTTP 500..599指“服务器有一个问题/配置错误”

看到http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html获取更多信息。