search

Home  >  Q&A  >  body text

objective-c - 七牛ios控制台经常打印错误日志get ip failed

get ip failed: Error Domain=NSURLErrorDomain Code=-1009 "似乎已断开与互联网的连接。" UserInfo={NSUnderlyingError=0x15f4bb200 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "似乎已断开与互联网的连接。" UserInfo={NSErrorFailingURLStringKey=http://reportqos.qiniuapi.com/v1/ip, NSErrorFailingURLKey=http://reportqos.qiniuapi.com/v1/ip, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12, NSLocalizedDescription=似乎已断开与互联网的连接。}}, NSErrorFailingURLStringKey=http://reportqos.qiniuapi.com/v1/ip, NSErrorFailingURLKey=http://reportqos.qiniuapi.com/v1/ip, _kCFStreamErrorDomainKey=12, _kCFStreamErrorCodeKey=8, NSLocalizedDescription=似乎已断开与互联网的连接。}

网络连的都是wifi,android的从未出现过,这个是哪里的问题吗

怪我咯怪我咯2772 days ago619

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-04-17 17:28:46

    If there is no problem with the network and there is no problem with Android, then there must be no problem with Qiniu server, then the problem is iOS.
    If there is an iOS problem, the possible reasons are:
    1. After iOS 8, set a non-https domain name to pass.
    2. After iOS10, the application is required to obtain wireless or cellular network usage permissions.
    3. Issues with the third-party network framework used (illegal parameters, incorrect format, etc.)

    reply
    0
  • Cancelreply