400: Bad Request after upgrade

I’m running Home Assistant OS 6.2 on a Raspberry Pi which I upgraded yesterday to supervisor-2021.06.8 and core-2021.8.4.

Other than some problems with the Tesla integration, everything appeared to have worked fine as I was testing using my local IP address.

When I went to use the iOS App this morning (or via the external URL) I’m getting a 400: Bad Request error.

From some Googling this could be down to the fact I’m connecting via a proxy server, so have updated the configuration.yaml file to contain the following:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 192.168.168.1
    - 192.168.168.60

This hasn’t worked though, and I’m wondering if the problem is due to the proxy server being Nginx Proxy Manager which I am running as a Supervisor add-on? This means the proxy and HA IP are the same (.60 above). This was working fine before the upgrade, although I can remember the version I was running before. It was probably 3-4 months behind.

Any ideas what might have changed in that time to cause this, and how I might fix?

Thanks

You should be receiving an error in your logs regarding reverse proxy. If you are using Nginx add-on, the IP should be within 172.30.33.0/24 (Home Assistant Docker Internal IP Address), so it should be-

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
6 Likes

Thank you!

Thank you!

great! thx

Thank you! Solved issues with a friend of mine. :slight_smile:

Thanks man! You saved me.

1 Like

Awesome info to have, thanks!