AWS AWSiOSSDKv2 DynamoDB Error - ios

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.

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

Unable to get a secure connection to AWS DynamoDB

I keep getting the following errors trying to write to a table in my ios objective-c app:
The request failed. Error: [Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={_kCFStreamErrorCodeKey=-9824, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSUnderlyingError=0x12764c8f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9824, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9824}}, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made.
What is wrong above?

Flakey connection to dev machine

My app calls to my dev machine over the local network to get some data. Usually this work fine, but sometimes it won't connect and times out. When this happens, I can copy and paste from the output window the URL its requested and paste it into a browser on a different system, and the request works fine.
After a while, the app will connect fine without any changes on my part.
Does anyone have any ideas why this might happen?
Sometimes, I get this message to the output window...
> 2017-01-19 16:35:28.427179 MyApp[489:69535] [] nw_socket_connect
> connectx failed: [64] Host is down 2017-01-19 16:35:28.817530
> MyApp[489:69426] PromiseKit: unhandled error: Error
> Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server."
> UserInfo={NSUnderlyingError=0x1702428b0 {Error
> Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)"
> UserInfo={_kCFStreamErrorCodeKey=64, _kCFStreamErrorDomainKey=1}},
> NSErrorFailingURLStringKey=http://192.168.8.52:45455/api/hello,
> NSErrorFailingURLKey=http://192.168.8.52:45455/api/hello,
> _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=64, NSLocalizedDescription=Could not connect to the server.}

Login to Twitter sometimes fails

I use the simple code for login to Twitter
[[Twitter sharedInstance] logInWithCompletion:^(TWTRSession *session, NSError *error) {
if (session != nil) {
NSLog(#"successful %#",session);
} else {
NSLog(#"error: %#", error);
}
}];
and sometimes I get the error:
2016-08-04 15:39:14.472 MyProject[11143:132894] [TwitterKit] did
encounter error with message "Error attempting to obtain temporary
auth token.": Error Domain=NSURLErrorDomain Code=-1004 "Could not
connect to the server." UserInfo={NSUnderlyingError=0x7fe043a49830
{Error Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)"
UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}},
NSErrorFailingURLStringKey=https://api.twitter.com/oauth/request_token,
NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token,
_kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.} 2016-08-04
15:39:14.473 EarCrush[11143:132894] [TwitterKit] did encounter error
with message "Unable to authenticate using the system account.": Error
Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server."
UserInfo={NSUnderlyingError=0x7fe043a49830 {Error
Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)"
UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}},
NSErrorFailingURLStringKey=https://api.twitter.com/oauth/request_token,
NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token,
_kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
2016-08-04 15:39:14.473 MyProject[11143:132894] error: Error
Domain=NSURLErrorDomain Code=-1004 "Could not connect to the server."
UserInfo={NSUnderlyingError=0x7fe043a49830 {Error
Domain=kCFErrorDomainCFNetwork Code=-1004 "(null)"
UserInfo={_kCFStreamErrorCodeKey=61, _kCFStreamErrorDomainKey=1}},
NSErrorFailingURLStringKey=https://api.twitter.com/oauth/request_token,
NSErrorFailingURLKey=https://api.twitter.com/oauth/request_token,
_kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=61, NSLocalizedDescription=Could not connect to the server.}
I mean sometimes because:
2 days ago I can login to Twitter normally
Yesterday I can not login,
This morning I can login but now (afternoon) I can not login even I don't change any code
I have update my Twitter via Fabric to latest version now (2.3) and I'm sure I have internet connection
I know my problem is very strangely but hope someone have a same problem like me can give me some suggestion for fix it
I had problem with login with Twitter and Firebase. This code working for me:
Twitter.sharedInstance().startWithConsumerKey("key", consumerSecret: "secret")
in AppDelegate. Then, when you tap on your custom login button call this:
Twitter.sharedInstance().logInWithCompletion() { session, error in
if let session = session { ... })
If you using Fabric, you don't need to call Fabric.with([Twitter.self]).

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

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.

Resources