I noticed that the API endpoint indicates a secure connection:
HTTP S : //test.com/api/list/
Just try, just in case, maybe this will repeat your situation.
In my case, it was a typo in the API manager code. Which of the parts can be said to be related to application transport security settings.
Just changed the secure protocol from httpS:// to http:// and the error:
Code NSURLErrorDomain = -999 "canceled"
was not and it all worked !
+ And if you had a similar problem. Be sure to discuss this with the support specialist who is setting up the server or API for your application. This means that the server does not have valid security certificates. You may still need a secure connection. Or, this specialist can again configure everything from http:// to httpS:// , and I'm not sure (did not check) whether this will work again when you are already using an insecure http:// connection in the code.
source share