Can some one describe how "NSURLErrorCancelled = -999" is used.
From Apple docs:
NSURLErrorCancelled (-999)
"Returned when an asynchronous load is canceled. A Web Kit framework delegate will receive this error when it performs a cancel operation on a loading resource. Note that an NSURLConnection or NSURLDownload delegate will not receive this error if the download is canceled."
best thing you can do about it is to ignore this error
if ([error code] != NSURLErrorCancelled) {
//here you'll get a real error
}
This error might me caused by an invalid SSL certificate. If the framework you are using to execute the request tests for valid SSL, you should add the host you are trying to connect to on a whitelist of trusted hosts.
Hope that helps anyone :)
When the URL redirects to another URL, we will receive an NSURLErrorCancelled error. And you have assigned a code value of -999
to that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With