tomaae / homeassistant-truenas

TrueNAS integration for Home Assistant
Apache License 2.0
183 stars 16 forks source link

[Bug] Integration does not work when HTTP redirects are enabled for truenas web interface #161

Closed GrootOpperhoofd closed 2 months ago

GrootOpperhoofd commented 3 months ago

Describe the issue

A clear and concise description of what the issue is. I've enabled "Web Interface HTTP -> HTTPS Redirect" checkmark under System settings>General>GUI settings in truenas and the HA integration stopped being able to fetch data from truenas. I've tried to make a new entry but it just indicates "No response from host." when I tried to set it up. Renewing the API key has no effect but when I uncheck the redirect box everything works as expected again.

How to reproduce the issue

Set the "Web Interface HTTP -> HTTPS Redirect" checkmark under System settings>General>GUI settings in truenas web interface

Expected behavior

Truenas is accessible what the redirects are active.

Software versions

Traceback/Error logs

Logfiles just repeat the following line: "TrueNAS 192.168.x.x unable to fetch data "system/info" (no_response)"

tomaae commented 2 months ago

Works for me. Make sure that you have set integration to use ssl.

GrootOpperhoofd commented 2 months ago

I did tick the SSL box when setting up truenas in HA but was unable to get it to work before. Updated to latest version of truenas today and it seems to work for me now as well. Not sure if the update fixed it or a reboot truenas was enough but the problem seems to be gone.