NSURLErrorDomain - iOS App

I’m getting the following error when trying to save objects to backendless sometimes:

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9806)


I’m having trouble finding info on what exactly that error means. It happens arbitrarily, as I was typing this I recreated the scenario that just generated the error and this time it went through fine (with no code change, just reproduced the scenario). Generally it seems to happen when performing multiple calls in sequence, can you provide any info to help me debug?
Thanks,
Chris

Hi Chris,

It looks like the client fails to properly handle the SSL handshake with the server. You could try using the “setHostUrl” method to set the API endpoint URL to http://api.backendless.com instead of the default https://

Here’s the method in the Backendless class:

Regards,
Mark