#Cat't get past "Failed to Connect" unknown error NSURLErrorDomain -1

1 messages · Page 1 of 1 (latest)

rigid ibex
#

Suddenly I'm getting this error but I can't figure out what is causing it. I am able to get past discovery and to the login page with the app, but as soon as I hit login, I get this error. I am able to get in via browser just fine. I attempted the various suggestions I've found online for similar issues, but so far have not found a solution.

rigid ibex
rigid ibex
#

Oh, and iPhone 15 Pro, IOS 18.1.1 latest app and testflight app

stone rover
#

Error Domain=NSOSStatusErrorDomain Code=-67843 "Certificate 0 “anvil” has errors: SSL hostname does not match name(s) in certificate, Extended key usage does not match certificate usage, Root is not trusted

#

When you use it through Safari does it says “not secure”?

rigid ibex
#

After initially seeing errors while trying to log in with the app, I decided to try installing a self-signed cert. Now, yes, both Safari and FF come up with a trust warning before that I need to acknowledge before presenting the login screen

stone rover
#

The iOS App does not support self signed certificates unfortunately

rigid ibex
#

However...I have another HA instance to test with that is HTTP and it gives me the same error

#

Safari is fine...the app fails after login

#

Since it's local, I don't mind running without a cert - I only added it because I thought that was what it was complaning about initially

stone rover
#

So you have another HA instance and you are trying to configure the app using it's local IP, this instance also open in Safari without the "not secure" warning right?

rigid ibex
#

Correct

stone rover
#

Can you record your screen while configuring this instance in the app? Please also show me how it looks in safari while doing that

#

And finally, export the logs and submit once more

rigid ibex
#

Are screenshots ok or do you want video?

stone rover
#

Video would be better if possible

rigid ibex
#

Ok, sec

stone rover
#

And in safari?

rigid ibex
#

Ah - one sec

#

If there are no clues here, I can probably grab the app source and do a local build - it's been awhile and I don't have an active dev key anymore, but I think I can still build for my local device

stone rover
#

The only error I see happening again and again is

2025-01-20 09:01:06.387 [Error] [main] [WebhookManager.swift:672] urlSession(_:task:didCompleteWithError:) > failed request to B2522E39-A86A-4AA5-8BFF-630CC709898D for WebhookResponseUnhandled: Error Domain=NSURLErrorDomain Code=-1 "unknown error" UserInfo={NSErrorFailingURLStringKey=http://172.16.16.13:8123/api/webhook/3f4b0af00c3332a2a72212fbe714f35926ddf2948ddb4d4e4f4e9c886c5d5ea7, NSErrorFailingURLKey=http://172.16.16.13:8123/api/webhook/3f4b0af00c3332a2a72212fbe714f35926ddf2948ddb4d4e4f4e9c886c5d5ea7, _NSURLErrorRelatedURLSessionTaskErrorKey=(
    "BackgroundUploadTask <E80C1AB0-E5F7-445B-B775-CF22C7D4FFDC>.<11>"
#

Before diving deep, can you reboot your HA instance and also your phone? Just in case is something cached in the system

#

if you have a secondary device to also try to setup the HA App would also be helpful

rigid ibex
#

Will do.

#

Wow...basic IT and I didn't think to try it on my iPhone.

#

A reboot worked

#

Interestingly I had uninstalled and reinstalled the app as well as switched to TestFlight and that didn't do the trick

stone rover
#

Yeah, I am always afraid someone replies me "Come on man..." but very often it fixes the issue hahaha

rigid ibex
#

Don't I know it

#

It just didn't occur to me on the phone - heh

stone rover
rigid ibex
#

Yeah - very odd. Thank you for your help!