Parse.com connection lost when reaching availability status == 2
I am getting parse.com errors all day long that there is no network connection, while my availability data is 2.
This is a parsing error:
_kCFStreamErrorDomainKey=1,
_kCFStreamErrorCodeKey=57,
NSLocalizedDescription=The network connection was lost.},
temporary=1, code=100}
This is the code I am using to check for validation:
Reachability *reach = [Reachability reachabilityForInternetConnection];
NetworkStatus netStatus = [reach currentReachabilityStatus];
if (netStatus == NotReachable) {
NSLog(@"No internet connection!");
} else {
NSLog(@"netstatus: %ld",netStatus);
}
Obviously, the two outputs contradict each other.
Is there a way to tell what the network connection actually is, or in some other way around this error?
+3
source to share
2 answers