Parse.com NSURLErrorDomain Code=-1003 in cellular not in wifi - ios

I have an app that work with the parse.com backend.
Since today have a NSURLErrorDomain Code=-1003 with parse.com only using cellular network. Wifi is working pretty good. What could be the issue ?
Here the full error :
[Error]: Error Domain=NSURLErrorDomain Code=-1003
"A server with the specified hostname could not be found."
UserInfo=0x1700f2200{NSUnderlyingError=0x170245880 "A server with the specified hostname could not be found.",
NSErrorFailingURLStringKey=https://api.parse.com/2/find,
NSErrorFailingURLKey=https://api.parse.com/2/find,
_kCFStreamErrorDomainKey=12,
_kCFStreamErrorCodeKey=8,
NSLocalizedDescription=A server with the specified hostname could
not be found.}
(Code: 100, Version: 1.6.1)

It seems that restarting my phone solve the problem.

Related

Application stop suddenly and getting NSURLErrorDomain error

I am using IOS 13.3 and my application stop suddenly after 6 month.
I have checked my certificate and found no issue in certificate.
i am getting the following error.
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9816)
2020-04-17 01:38:14.778140+0530 Example[38000:704335] Task <71350D43-9801-46F2-9F9E-333AF09964CE>.<1> HTTP load failed (error code: -1200 [3:-9816])
2020-04-17 01:38:14.779009+0530 Example[38000:704332] Task <71350D43-9801-46F2-9F9E-333AF09964CE>.<1> finished with error - code: -1200
2020-04-17 01:38:14.782985+0530 Example[38000:704332] Task <71350D43-9801-46F2-9F9E-333AF09964CE>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLStringKey=https://api.example.com:1410/v1.1/users/signin, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, kCFStreamErrorDomainKey=3, NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <71350D43-9801-46F2-9F9E-333AF09964CE>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <71350D43-9801-46F2-9F9E-333AF09964CE>.<1>"
), NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., NSErrorFailingURLKey=https://api.example.com:1410/v1.1/users/signin, NSUnderlyingError=0x600002db3d50 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, kCFNetworkCFStreamSSLErrorOriginalValue=-9816, kCFStreamErrorDomainKey=3, kCFStreamErrorCodeKey=-9816}}, kCFStreamErrorCodeKey=-9816} [-1200]
Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made.
Here is the screenshot
I'm not sure how to solve it. Any ideas?
You probably need to reconfigure your SSL certificates. I know for TCP/TLS at least, with iOS 13 they imposed more restrictions on the certificates. I created a package to handle sockets on iOS - I also included a lot of good info about making certificates how you need to now.
https://github.com/eamonwhiter73/IOSObjCWebSockets/tree/master

Firebase Connection error when date changed on device

I have setup my app's database on firebase. The app fetches data normally,
but when I change the date on device to 25th march,2019 or after that, it starts show error on console as below. Current date is 14th November, 2018.
Is there any kind of validation on firebase server.
[Firebase/InstanceID][I-IID003009] Failed to fetch default token Error Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server." UserInfo={NSUnderlyingError=0x17025c0e0 {Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)" UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://device-provisioning.googleapis.com/checkin, NSErrorFailingURLKey=https://device-provisioning.googleapis.com/checkin, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
CFNetwork SSLHandshake failed (-9807)
By setting the date too far into the future you are preventing the SSL handshake from completing successfully.
The status code of -9807 indicates that something in the certificate chain is invalid; It is likely that a certificate in the chain expires before the 25th of March 2019. Because a certificate has expired, an SSL connection cannot be made.

Error Domain=NSURLErrorDomain Code=-1003 : A server with the specified hostname could not be found error

I have an app where I am calling one web service which works fine for the first time but for second time didFailWithError gets called with error
"A server with the specified hostname could not be found."
And also a weird error like
dnssd_clientstub deliver_request: socketpair failed 24 (Too many open files). nw_resolver_create_dns_service_on_queue DNSServiceGetAddrInfo failed: Unknown(-65537)
I don't think it is a network issue. How can I fix it?

AWS AWSiOSSDKv2 DynamoDB Error

This has been working fine for over a year and then:
Error occurred: [Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo={NSUnderlyingError=0x61000004c300 {Error Domain=kCFErrorDomainCFNetwork Code=-1003 "(null)" UserInfo={_kCFStreamErrorCodeKey=832912, _kCFStreamErrorDomainKey=0}}, NSErrorFailingURLStringKey=https://dynamodb.us-east-1.amazonaws.com/, NSErrorFailingURLKey=https://dynamodb.us-east-1.amazonaws.com/, _kCFStreamErrorDomainKey=0, _kCFStreamErrorCodeKey=832912, NSLocalizedDescription=A server with the specified hostname could not be found.}]
Is Amazon just down today? The "healthy" status shows that it is up.

A server with the specified hostname could not be found crashlytics

I am running iOS project job on Jenkins. It is a multiple-target scheme. I have unchecked parallelize build. Is worked just fine until last week. I keep getting those messages:
2014-05-31 14:42:44.788 run[62805:507] Crashlytics.framework/run 1.3.8
2014-05-31 14:42:56.193 run[62805:507]
Crashlytics: Could not be onboarded statusCode 0 Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x10061ae00 {NSUnderlyingError=0x10061cca0 "A server with the specified hostname could not be found.", NSErrorFailingURLStringKey=https://api.crashlytics.com/spi/v1/platforms/ios/apps/com.contagme.Tbusiness/built, NSErrorFailingURLKey=https://api.crashlytics.com/spi/v1/platforms/ios/apps/com.contagme.Tbusiness/built, NSLocalizedDescription=A server with the specified hostname could not be found.}
2014-05-31 14:43:02.951 run[62805:507]
Crashlytics: business.app.dSYM could not be uploaded statusCode 0 Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x10023ffb0 {NSUnderlyingError=0x100221170 "A server with the specified hostname could not be found.", NSErrorFailingURLStringKey=https://api.crashlytics.com/api/v1/8b3cc2afd185191b47ce70547f29a014d00fff47/dsyms, NSErrorFailingURLKey=https://api.crashlytics.com/api/v1/8b3cc2afd185191b47ce70547f29a014d00fff47/dsyms, NSLocalizedDescription=A server with the specified hostname could not be found.}
My intepretation:
Crashlytics server cannot be reached. What can I do? Is there any way how to deploy crashlytics and not having to rely on connectivity at the moment? Is the unreachability of crashlytics server really the source of this issue?

Resources