We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如添加如下网络请求的代码会出现错误,请问这种情况有遇到过吗?
url = "http://www.baidu.com" request(url).response { (response) in debugPrint("reponse=\(response)"); }
2020-01-22 15:14:09.468567+0800 XCTestWDUITests-Runner[1202:315679] Task <8325DA0F-DF48-4B54-998D-449B10013EB0>.<41> load failed with error Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接。" UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x281de43f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8325DA0F-DF48-4B54-998D-449B10013EB0>.<41>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <8325DA0F-DF48-4B54-998D-449B10013EB0>.<41>" ), NSLocalizedDescription=似乎已断开与互联网的连接。, NSErrorFailingURLStringKey=http://www.baidu.com/, NSErrorFailingURLKey=http://www.baidu.com/, _kCFStreamErrorDomainKey=1} [-1009] t = 188.64s Get number of matches for: Descendants matching type TabBar "reponse=DefaultDataResponse(request: Optional(http://www.baidu.com), response: nil, data: Optional(0 bytes), error: Optional(Error Domain=NSURLErrorDomain Code=-1009 \"似乎已断开与互联网的连接。\" UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x281de43f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 \"(null)\" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8325DA0F-DF48-4B54-998D-449B10013EB0>.<41>, _NSURLErrorRelatedURLSessionTaskErrorKey=(\n \"LocalDataTask <8325DA0F-DF48-4B54-998D-449B10013EB0>.<41>\"\n), NSLocalizedDescription=似乎已断开与互联网的连接。, NSErrorFailingURLStringKey=http://www.baidu.com/, NSErrorFailingURLKey=http://www.baidu.com/, _kCFStreamErrorDomainKey=1}), timeline: Timeline: { \"Request Start Time\": 601370049.459, \"Initial Response Time\": 601370049.470, \"Request Completed Time\": 601370049.470, \"Serialization Completed Time\": 601370053.472, \"Latency\": 0.011 secs, \"Request Duration\": 0.011 secs, \"Serialization Duration\": 4.002 secs, \"Total Duration\": 4.013 secs }, _metrics: Optional((Task Interval) <_NSConcreteDateInterval: 0x2813df1c0> (Start Date) 2020-01-22 07:14:09 +0000 + (Duration) 0.008916 seconds = (End Date) 2020-01-22 07:14:09 +0000\n(Redirect Count) 0\n(Transaction Metrics) (Request) <NSURLRequest: 0x28119a5e0> { URL: http://www.baidu.com/ }\n(Response) (null)\n(Fetch Start) 2020-01-22 07:14:09 +0000\n(Domain Lookup Start) (null)\n(Domain Lookup End) (null)\n(Connect Start) (null)\n(Secure Connection Start) (null)\n(Secure Connection End) (null)\n(Connect End) (null)\n(Request Start) 2020-01-22 07:14:09 +0000\n(Request End) 2020-01-22 07:14:09 +0000\n(Response Start) 2020-01-22 07:14:09 +0000\n(Response End) (null)\n(Protocol Name) (null)\n(Proxy Connection) NO\n(Reused Connection) YES\n(Fetch Type) Unknown\n\n))"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
比如添加如下网络请求的代码会出现错误,请问这种情况有遇到过吗?
The text was updated successfully, but these errors were encountered: