Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSURLConnection finished with error - code -1202

When I hit the login server, I get this error message:

NSURLConnection finished with error - code -1202.

I have added App transport security in my Plist and I have allowed all the invalid certificates to YES.

like image 276
Praveen Kokkula Avatar asked Nov 06 '17 11:11

Praveen Kokkula


1 Answers

Acc to Google Search -1202 = NSURLErrorServerCertificateUntrusted:

Help Links:

  1. HTTPS with NSURLConnection - NSURLErrorServerCertificateUntrusted

  2. NSURLConnection Error code (-1202,1012)

REF : Undocumented NSURLErrorDomain error codes (-1001, -1003 and -1004) using StoreKit

Check validity of certificate in server side also, as this can be one possibility for this error.

Also, NSURLConnection is depecrated i suggest update it via NSURLSession

like image 174
Abhishek Thapliyal Avatar answered Nov 02 '22 21:11

Abhishek Thapliyal