Backendless Support
 
Waiting for user's response

NSURLErrorDomain - iOS App

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

  1. 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

Leave a Comment

Comments (1)

photo
1

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:

https://github.com/Backendless/ios-SDK/blob/master/SDK/backendlessAPI/Classes/Backendless.m#L205

Regards,

Mark