home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.53k stars 30.71k forks source link

iOS App cannot connect through Cloudflare - HA says "Did not receive auth message" #89542

Closed sderungs closed 1 year ago

sderungs commented 1 year ago

The problem

Hi

My setup:

Until roughly end of January 2023 my setup was working fine. While I was in my home wifi the iOS app would connect through the internal URL and while I was out it would use the external URL - both would work fine.

However, since some time in January the external access does not work anymore from within the HA app on iOS. If I instead use a browser like Safari or Chrome, the external access still works. So in general the connection from outside (phone in 4G/5G connection -> Cloudflare -> Tunnel -> HomeAssistant) is still "fine".

The problem with the iOS app not working anymore is that all location based automations stop working because "I never leave home".

I'm not sure how to further troubleshoot to provide more insights into this issue.

What version of Home Assistant Core has the issue?

2023.3.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

In the HA app under Settings -> MyHome -> Websocket I get the following error after the WebSocket connection attempt failed showing "Disconnected":

> WebSocket
> Error: Response could not be decoded because of error: The operation couldn't be completed. ObjectMapper failed to serialize response.
> Retry Count: 8
> Next Retry: 12:05:12

And Home Assistant logs the following:

> 2023-03-11 12:06:33.128 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection] [547247327600] Disconnected: Did not receive auth message within 10 seconds

Additional information

No response

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

sderungs commented 1 year ago

This issue still persists in HA 2023.04, 2023.05 and now also with 2023.06.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.