程序在运行时,出现了这个错误,但不影响程序的正常运行。
我也不太清楚出现这个错误的原因,网上有人是在AFNetWorking3.0时出现这个问题,虽然我也是用的AFNetWorking3.0,但之前其他项目也用过,没有这个问题啊。
后来是参考了下面这篇文章,问题解决了,要是有人知道原因,可以跟我说下吗?谢谢!
参考文章:http://blog.csdn.net/yanyanforest/article/details/51754434
解决方法:
修改info.plist
NSExceptionDomains
NSExceptionRequiresForwardSecrecy : NO
NSIncludesSubdomains:YES
NSExceptionAllowInsecureHTTPLoads : YES
网友评论
一样吗和您这个
14529: CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.3.15/Loading/URLConnectionLoader.cpp:289)
可能是关键字没输入完整才会跳进你这里
当我把后台返回的图片地址放到浏览器上,给的结果是
{"error":"Document not found"}
然后借鉴了一下stackoverflow 上的一个解决方法:http://stackoverflow.com/questions/38050726/cfnetwork-internal-error-urlconnectionloader-cpp289
I solved my situation, it is not AFNetwork's issue, I use a invalid SSL certification and SDWebImage, when use the option 'SDWebImageAllowInvalidSSLCertificates' in SDWebImage and get a http image (not https image), you will get this error. the protocol (http or https) not being recognized automaticly by SDWebImage.
my solution: I not change SDWebImage’s code, I just write a wrapper for recognized protocol (http or https). I use '0' option for http images and 'SDWebImageAllowInvalidSSLCertificates' option for https images (my https certification is self signed or invalid). If yours cer is valid , I think SDWebImage works well.
可以解决