mike-grant / haaska

Home Assistant Alexa Skill Adapter that supports v3 of the Alexa Smart Home Skill API
MIT License
539 stars 118 forks source link

Too Many Redirects #207

Open eric-silva89 opened 3 years ago

eric-silva89 commented 3 years ago

Hello and thank you for developing this great haaska integration,

Background: Using Docker container for Home Assistant core. Using a NetScaler ADC setup with content switching virtual server to present multiple websites over a single IP address. Home Assistant is one of many sites that is hosted. NetScaler content switching policies/actions are looking at the hostname in the header and redirecting traffic to the appropriate virtual server. Another function the NetScaler is doing is redirecting http traffic to https traffic. Certificates are generated via ZeroSSL with the NetScaler ADC offloading (terminating) the certificate chain at the appliance and unencrypted traffic going to the home assistant site.

Issue: I have followed your steps to a T and at the end I tried to test my work and get a failed with too many redirects. I turned on debugging at the config.json and will supply it below to see if someone can help. The debug section shows that the haaska.pl script is trying to hit port 80 as well as port 443. Port 80 gets a 302 response where port 443 gets a 301. If anyone has any ideas that would be very helpful.

Thanks, Eric

haaska_debug.txt