HA behind Cloudflare ZTNA, app won't connect

It used to work, not sure why its not working anymore.
I have HA behind CloudFlare ZTNA. When I use web browser (Mobile/Desktop) I can access without any issue.
When I use the mobile app, I see the HA login screen, enter my correct credentials, and then this error:

"Faile to Connect
X
The data couldn’t be read because it isn’t in the correct format.
Error Code:
NSCocoaErrorDomain 3840

I should also mention I have Trafik in front.
Nothing intersting in HA logs:

26/09/2023
23:42:27
2023-09-26 23:42:27.659 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/providers to 192.168.194.202 (auth: False)
26/09/2023
23:42:27
2023-09-26 23:42:27.660 DEBUG (MainThread) [homeassistant.components.http.view] Serving /manifest.json to 192.168.194.202 (auth: False)
26/09/2023
23:42:27
2023-09-26 23:42:27.831 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow to 192.168.194.202 (auth: False)
26/09/2023
23:42:36
2023-09-26 23:42:36.750 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/login_flow/c2925d82ae2652ccb93e3cdf53f3bc87 to 192.168.194.202 (auth: False)
26/09/2023
23:42:37
2023-09-26 23:42:37.884 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.194.202 (auth: False)
26/09/2023
23:42:38
2023-09-26 23:42:38.315 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.194.202 (auth: False)
26/09/2023
23:42:38
2023-09-26 23:42:38.869 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/mobile_app/registrations to 192.168.194.202 (auth: True)
26/09/2023
23:42:39
2023-09-26 23:42:39.444 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/token to 192.168.194.202 (auth: False)

EDIT: Just tried bypassing traefik and go directly to http://:8123 and same error.

1 Like

Having same issue, have you found a solution?

Hi, Not much of help… But I can confirm that exactly same issuecan be seen when I use Azure Application proxy to publish HA.
I get same error messages. It works using browser. The app is not working on my MacOS client but works fine when using the app on my Samsung smartphone.

Having the same issue.
Any update about it?