I’ve spent more time than I probably should have over the last two days fighting with Nginx and HASS. I have followed the setup guide in the HASS docs, and scoured the forums looking for a solution but to no avail. It seems that others have had my issue of “Error during WebSocket Handshake” but when I try what they’ve done to fix it, it doesn’t work… I have cleared my browser cache every time I try something new just to be safe as well.
Is there something maybe in the latest version of either HASS or Nginx that is giving me grief? Is anyone else experiencing this issue?
Worth noting that I am NOT doing anything with port 80 - it’s not being forwarded on my router, and subsequently I haven’t put the redirect code into my Nginx setup either. Could that be my problem? I left it out because I will always use https, so I didn’t think I would need it.
My current setup:
HASS 0.64.3 running on Ubuntu 16.04LTS (python3.6)
Thanks @Tinkerer. That linked page actually mentions version 1.3.13, so I thought I was okay. I did upgrade to the latest version but to no avail.
What’s even more troubling now, is that I have completely removed Nginx from my server, and now can’t even connect using just basic port forwarding… I’m getting “failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED” in my browser console.
I feel like I’ve tried everything to resolve and just haven’t had any luck. Wanted to put it out there for ANY thoughts or suggestions on what to do with this error, keeping in mind that I’m now simply trying to use https://hass.mydomain.com/ with port forwarding on my router from 443 to 8123.
Any suggestions are welcome! I’ve probably missed the most basic thing so don’t rule anything out!
Thanks for the reply. I am able to connect via LAN IP and port. Good thought on testing outside the network, but unfortunately that doesn’t work either.
Probably going to end up starting over with a clean Ubuntu install, but wanted to put the post out there as a last ditch effort.
Unfortunately no, I had to move on to get my system back up and running. I was in the process of migrating to a Linux server from an RPi. Hope to revisit it again in the future though.