Async finding object by objectId not working, load failed
I am trying to find an object by it's objectId.
This code works:
But it throws an exception if the object does not exist.
So I am trying to use this
But it just hangs and then returns this:
2017-08-23 16:00:17.885689-0400 PIT[19987:875840] TIC TCP Conn Failed [2:0x604000174580]: 3:-9802 Err(-9802)
2017-08-23 16:00:17.886198-0400 PIT[19987:875840] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
2017-08-23 16:00:17.886375-0400 PIT[19987:875840] Task <882E0447-F399-40B1-975E-B160F5934638>.<0> HTTP load failed (error code: -1200 [3:-9802])
2017-08-23 16:00:17.886622-0400 PIT[19987:875842] NSURLConnection finished with error - code -1200
What is going on here? Is there a way to just handle the exception that the sync method throws? Why isn't the async one working?