标签:
/SourceCache/ProtocolBuffer_Sim/ProtocolBuffer-225/Runtime/PBRequester.m:799 server (https://gsp13-cn.ls.apple.com/localshift) returned error: 504
Failed to get location shift function: Error Domain=NSURLErrorDomain Code=-1011 "The operation couldn’t be completed. (NSURLErrorDomain error -1011.)" UserInfo=0x7d2d6be0 {PBHTTPStatusCode=504}
PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x811e4390 {NSErrorFailingURLStringKey=https://gsp13-cn.ls.apple.com/localshift, NSErrorFailingURLKey=https://gsp13-cn.ls.apple.com/localshift, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7f27d470 "The request timed out."}
Failed to get location shift function: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x811e4390 {NSErrorFailingURLStringKey=https://gsp13-cn.ls.apple.com/localshift, NSErrorFailingURLKey=https://gsp13-cn.ls.apple.com/localshift, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x7f27d470 "The request timed out."}
有可能是因为虚拟器连接不到网络, 而不是代码的问题, 过一会再试就正常了
所有的错误代码是在对“CFNetwork的错误代码参考” 小提取CFURL和CFURLConnection错误:
kCFURLErrorUnknown = -998,
kCFURLErrorCancelled = -999,
kCFURLErrorBadURL = -1000,
kCFURLErrorTimedOut = -1001,
kCFURLErrorUnsupportedURL = -1002,
kCFURLErrorCannotFindHost = -1003,
kCFURLErrorCannotConnectToHost = -1004,
kCFURLErrorNetworkConnectionLost = -1005,
kCFURLErrorDNSLookupFailed = -1006,
kCFURLErrorHTTPTooManyRedirects = -1007,
kCFURLErrorResourceUnavailable = -1008,
kCFURLErrorNotConnectedToInternet = -1009,
kCFURLErrorRedirectToNonExistentLocation = -1010,
kCFURLErrorBadServerResponse = -1011,
kCFURLErrorUserCancelledAuthentication = -1012,
kCFURLErrorUserAuthenticationRequired = -1013,
kCFURLErrorZeroByteResource = -1014,
kCFURLErrorCannotDecodeRawData = -1015,
kCFURLErrorCannotDecodeContentData = -1016,
kCFURLErrorCannotParseResponse = -1017,
kCFURLErrorInternationalRoamingOff = -1018,
kCFURLErrorCallIsActive = -1019,
kCFURLErrorDataNotAllowed = -1020,
kCFURLErrorRequestBodyStreamExhausted = -1021,
kCFURLErrorFileDoesNotExist = -1100,
kCFURLErrorFileIsDirectory = -1101,
kCFURLErrorNoPermissionsToReadFile = -1102,
kCFURLErrorDataLengthExceedsMaximum = -1103,
标签:
原文地址:http://www.cnblogs.com/Rinpe/p/4910906.html