Can't login to HA cloud with the companion app: An SSL error has occurred and a secure connection to the server cannot be made

Hi everybody, I have a problem with the remote login via the nabu cloud.
It worked once after setup now it doesn’t login anymore. I checked the companion app logs and this is what it shows (removing the personal urls):

2019-12-06 21:09:21.571 [Verbose] [main] [WebViewController.swift:332] loadActiveURLIfNeeded() > Changing webview to current active URL!
2019-12-06 21:09:21.937 [Error] [main] [WebViewController.swift:258] webView(_:didFailProvisionalNavigation:withError:) > Failure during content load: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSErrorFailingURLKey=https://<PERSONAL KEY REMOVED>.ui.nabu.casa/?external_auth=1, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3D847B86-B456-4CF3-8B48-2A3D2B02950E>.<24>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorCodeKey=-9816, NSLocalizedDescription=An SSL error has occurred and a secure connection to the server cannot be made., _WKRecoveryAttempterErrorKey=<WKReloadFrameErrorRecoveryAttempter: 0x280dd7e80>, networkTaskDescription=LocalDataTask <3D847B86-B456-4CF3-8B48-2A3D2B02950E>.<24>, NSErrorFailingURLStringKey=https://<PERSONAL KEY REMOVED>.ui.nabu.casa/?external_auth=1, NSUnderlyingError=0x280100f60 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)" UserInfo={_kCFStreamPropertySSLClientCertificateState=0, _kCFNetworkCFStreamSSLErrorOriginalValue=-9816, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9816}}, _kCFStreamErrorDomainKey=3}
2019-12-06 21:09:22.753 [Verbose] [main] [WebViewController.swift:584] userContentController(_:didReceive:) > getExternalAuth called
2019-12-06 21:09:22.755 [Error] [main] [TokenManager.swift:195] currentToken > Token is expired by 1289 seconds: <PERSONAL KEY REMOVED>

I already tried removing all instances of the ios device from HA and reinstalled the companion, but I still get the same error. Local connect and web connect via a browser to the cloud url works fine.

Is there anybody that can help or point me into the right direction to get this resolved?

I have the same situation here. Not helping you much, but you’re not alone :wink:

1 Like

The ios app should never be set up using the nabu remote url.

It needs to be set up either locally and run through onboarding, where it will detect cloud and set up some stuff like webhooks and such.

The app also needs to have location access so it can determine via ssid whether it is in your home network with a direct connection to HA.

Depending on permissions when it was set up you may need to copy the url from external to internal in the app settings after you finished onboarding, the checkbox for nabu casa will then be available. If you enable that, the external url field will be grayed out and no longer be used and your phone should connect to HA via nabu casa cloud when you’re out and about.

1 Like

I just started having this issue today. I can’t figure out how to get it logged back in either, but I am able to log in via web browser from a computer without any issues.

Today i logged into HA web on my browser and noticed that under the settings - home assistant cloud the remote access had been disabled (very odd since it was enabled before). I enabled it again and what do you know… it works again.

I’ve had ab issue since the update. Mine says the SSL certificate is untrusted. Use a shortcut to naba casa ubtil I can figure it out.

Sorry for Waking this up but I just had the same issue.

Used the phone browser to connect through the Remote UI portal and once I logged in the app managed to connect again.
Strange but at least it works! :slight_smile:

I just had this issue pop up again out of nowhere. I was able to login on ios via safari and found that under Configuration -> Home Assistant Cloud -> the Remote Control setting had become disabled. After enabling it, I was able to access my instance again through the native app.

I had same issue today, running 113.1