ATS failed system trust

Are you looking for help?

This is a support forum for reporting issues related to Backendless services. Please note that due to our support policy we cannot provide you help with debugging your code, consulting in regards to any language or third-party library usage. For this kind of questions we recommend using more appropriate forums like Stack Overflow.

In order to suggest you a quality solution, we shall usually ask you to provide the details mentioned below first. Including them into your topic right away helps us to start investigating your issue much faster.

In case you have a suggestion or an idea, the details below are not always required, though still any additional background is welcome.

Backendless Version (3.x / 5.x, Online / Managed / Pro )

Client SDK (REST / Android / Objective-C / Swift / JS )

Application ID

FD829074-D6A1-7021-FF7E-6F57932E7100

Expected Behavior

Please describe the expected behavior of the issue, starting from the first action.

  1. Based on the following example code provided by Backendless I am expecting the application to return a successful message “Received string message: (message)”)
      // subscribe to the "default" channel
    
       let channel = Backendless.shared.messaging.subscribe(channelName: "default")
        let _ = channel.addStringMessageListener(responseHandler: { message in
            print("Received string message: \(message)")
        }, errorHandler: { fault in
            print("Error: \(fault.message ?? "")")
        })
   }

Actual Behavior

Please provide a description of what actually happens, working from the same starting point.

The request returns with the following error messages:

2019-11-03 14:41:54.337239-0500 ... ATS failed system trust

2019-11-03 14:41:54.337367-0500 ... Connection 3: system TLS Trust evaluation failed(-9802)

2019-11-03 14:41:54.337564-0500 ... Connection 3: TLS Trust encountered error 3:-9802

2019-11-03 14:41:54.337687-0500 ... Connection 3: encountered error(3:-9802)

2019-11-03 14:41:54.342203-0500 ... Task <F838D194-3B2E-4A7E-A091-AB0B7CC45933>.<1> HTTP load failed, 0/0 bytes (error code: -1200 [3:-9802])

Reproducible Test Case

  1. Create a new Xcode application
  2. Install the Backendless pod
  3. After a successful login via the app
  4. Connect to the default channel

Login:

func logIn(identity: String, password: String) {
        Backendless.shared.userService.login(identity: identity, password: password, responseHandler: { loggedInUser in
            print("User has been logged in")
            
        }, errorHandler: { fault in
            self.wrongAttempt.toggle()
            print("Error: \(fault.message ?? "")")
        })
    }

Subscribe to the channel :

    func subscribeToChannel() {
      // subscribe to the "default" channel
    
       let channel = Backendless.shared.messaging.subscribe(channelName: "default")
        let _ = channel.addStringMessageListener(responseHandler: { message in
            print("Received string message: \(message)")
        }, errorHandler: { fault in
            print("Error: \(fault.message ?? "")")
        })
    }

Hi @Aaron_A,

Thank you for reporting this issue. We have checked and made some changes. It should be working now. Please check and let us know.

Regards,
Mark

1 Like

It’s working as expected. Thanks again for the awesome support Mark.