Afnetworking: CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.3.15/Loading/URLConnectionLoader.cpp:289)

Created on 30 Jun 2016  ·  13Comments  ·  Source: AFNetworking/AFNetworking

CFNetwork internal error (0xc01a:/BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-758.3.15/Loading/URLConnectionLoader.cpp:289)

i occur this error but it not aways sometimes it's ok sometimes it's wrong

Most helpful comment

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

All 13 comments

i'm AF 3.0

I also encountered the same problem

I have the same.

I have the same. nothing can be found

I have the same. someone help?

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

@KBvsMJ
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 work well.

@AidenWK
As you say so!
I find this error log in a test environment, but not in a formal environment error log.

any solution ?

I think it's not SDWebImage, because I visited the local server address

Where is URLConnectionLoader.cpp exactly? Haven't found it on my machine.

URLConnectionLoader.cpp looks to be Apple’s source code. I don’t see anything here that points to an AFNetworking problem, but if you can find something concrete, feel free to open a new issue.

Was this page helpful?
0 / 5 - 0 ratings