- iOS LeanCloud Swift SDK 17.10.1
请求数据时提示 HTTPS 建立连接失败,详细错误信息如下:
LCError(code: 9977, underlyingError: sessionTaskFailed(error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://testapi.pandara.xyz/1.1/classes/Song?className=Song&limit=50&order=-createdAt&where=%7B%22%24and%22%3A%5B%7B%22scene%22%3A%7B%22className%22%3A%22Scene%22%2C%22__type%22%3A%22Pointer%22%2C%22objectId%22%3A%2262d187f5f45ef84dd33afbc3%22%7D%7D%5D%7D, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <8D363F92-5280-4D22-A42D-855E099DBF4B>.<6>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <8D363F92-5280-4D22-A42D-855E099DBF4B>.<6>"
), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://testapi.pandara.xyz/1.1/classes/Song?className=Song&limit=50&order=-createdAt&where=%7B%22%24and%22%3A%5B%7B%22scene%22%3A%7B%22className%22%3A%22Scene%22%2C%22__type%22%3A%22Pointer%22%2C%22objectId%22%3A%2262d187f5f45ef84dd33afbc3%22%7D%7D%5D%7D, NSUnderlyingError=0x282b6d440 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9836, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9836, _NSURLErrorNWPathKey=satisfied (Path is satisfied), viable, interface: pdpip0[nr_sa_sub6], ipv4, ipv6, dns, expensive}}, _kCFStreamErrorCodeKey=-9836}))