I’m using the Tunnel / Zero Trust App Connector to expose my Home Assistant installation to the Internet with the help of the Cloudflared plugin [1].
The Home Assistant installation is accessable over cellular plan from my phone (iOS device), I can see HA without problems, but the iOS app cannot push location updates (zone off/on events) to the HA.
The local logs have messages like:
2023-01-06 14:39:37.478 [Info] [main] [ClientEventStore.swift:8] ClientEventStore > networkRequest: Webhook failed with status code 503 [:]
2023-01-06 14:39:37.482 [Error] [main] [WebhookManager.swift:633] urlSession(_:task:didCompleteWithError:) > failed request to 6BEA5895-63A8-42B1-9FFC-5801A86BB1DB for WebhookResponseLocation: unacceptableStatusCode(503)
Messages are only written at the time of the manual location update or on device wake up, it correlated with the accepted push of location update.
No iPhone sensor updates over cellular connection are possible since I switched from Nabu Casa to Cloudflared method of exposing the HA installation.
Before geofences, location-based updated worked perfectly over Nabu Casa subscription from the same device.
I checked that Bot Fight Mode is disabled in my Cloudflare domain settings.
Unfortunately Cloudflare does not provide any access logs. I don’t see any security events in the corresponding log of Cloudflare.
I tried to reset (debug reset) my configuration to HA on in HA app on iPhone, but it didn’t change anything.
I was trying to check the access logs on Cloudflared Addon side and on the HA side, but I didn’t found any.
I’m kinda loss in troubleshooting this:
- nor ingress logs to understand why and which API path WebHook requrest fails (to exclude the Cloudflare blocks the request),
- nor HA / Addon side have logs to confirm that HA backend get the requests, but respond with 503 for some reason…
How can I troubleshoot “Webhook failed with status code 503” error?
Refs