-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebSocket client error: Failed reading HTTP status line #2
Comments
In the latest firmware update LG appears to have changed the way clients can connect to the TV, as evidenced by various other tools being forced to make changes (for example bscpylgtv, LGTVCompanion). Looking at the changes, it looks like the WebSocket port has changed from 3000 to 3001, and the use of SSL/TLS is now required. Interestingly, it could very well be that LGTVDeviceListener can already do this with no changes, as I suspect it's already built with SSL support, if memory serves me right. Can you try the following command and report back:
It's basically the same as before except the use of I'm not sure it will work because it might try to verify certificates which will likely fail. In that case I'd need to take a closer look and make some changes. |
I just tried the above myself and yeah, as expected it doesn't quite work:
I'll need to find a way to disable certificate verification. |
This is required to be able to connect using TLS (wss://) on port 3001, which in turn is required to be able to connect to recent LG firmware. See #2
This is fixed in LGTVDeviceListener 0.2. Note the updated instructions which use a different URL - |
Thanks for fixing this so quickly! |
After updating to version 03.30.16, this error comes up and no longer switches input. Verbose doesn't display any additional information.
[info ] Switching LGTV to input: HDMI_1
[ERROR ] In device event listener: WebSocket client error: Failed reading HTTP status line from ws://xxx.xxx.xxx.xxx:3000 (retries: 0, wait time: 0.000000 ms, HTTP status: 0)
The text was updated successfully, but these errors were encountered: