Intermittent Error kCFStreamErrorDomainSSL 9813

I am using NSURLConnection to make calls to the API server via HTTPS. Today I received this error for the first 2 or 3 calls after launching the application, and after that it returned to work:

NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)

What could cause this to happen intermittently? This usually works fine both in iOS and in the browser, so I cannot think of an obvious configuration problem on the server. But if it is not reliable for the end user and can happen randomly, this is obviously a problem.

SSL certificate from NameCheap, if that matters. The application works on iOS 7. Found an error both on the simulator and on the device, but can not play reliably.

+4
source share

Source: https://habr.com/ru/post/1544949/


All Articles