After upgrading from 2021.9.7 to 2021.10 I’m unable to connect to the remote UI from Nabu Casa.
When trying to connect from my Nabu Casa account I get this:
2021-10-07 08:05:57 ERROR (MainThread) [hass_nabucasa.iot] Error handling message
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/iot.py", line 104, in _async_handle_handler_message
result = await handler(self.cloud, message["payload"])
File "/usr/local/lib/python3.9/site-packages/hass_nabucasa/iot.py", line 175, in async_handle_remote_sni
await cloud.client.async_cloud_connect_update(True)
File "/usr/src/homeassistant/homeassistant/components/cloud/client.py", line 177, in async_cloud_connect_update
await self._prefs.async_update(remote_enabled=connect)
File "/usr/src/homeassistant/homeassistant/components/cloud/prefs.py", line 121, in async_update
raise InvalidTrustedProxies
homeassistant.components.cloud.const.InvalidTrustedProxies
The relevant (I believe) part of my configuration looks like this:
http:
ssl_certificate: /config/fullchain.pem
ssl_key: /config/privkey.pem
ip_ban_enabled: true
login_attempts_threshold: 5
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 127.0.0.1
Downgraded to latest backup (2021.9.7) and it works fine again.