-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
Music Assistant: cannot connect when MA server is correctly SSL-wrapped #132742
Comments
FYI websockets is working correctly:
|
Funny enough I can write a small asyncio program that works perfectly with the latest
|
The error is being swallowed and not logged, but what was going on is that the HTTPS certificate was not trusted by the Python virtual environment. Setting I keep this bug open because this type of error should be logged to the system log in detail, instead of being swallowed. |
Hey there @music-assistant, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) music_assistant documentation |
UPDATE: it was an SSL CA error. The error is not logged or displayed. It should be. I think this ticket should be closed once the error is displayed.
(For comparison, I had the same error with the Frigate custom integration, and yes, it logs the error to the HA log, although it also says "Cannot connect" and gives no further details in the UI, just like this integration.)
The problem
I've got Music Assistant correctly running with HTTPS proxying of its frontend / server on port 443 (decrypting and proxy-passing to port 8095 locally), served as
https://music.dragonfear
. I can set up MASS custom integration no problem with that. However, the recently-released built-in HA integration does not seem to support this, and I think I've traced the problem to this code inmusic_assistant_client/connection.py
:As result of
get_websocket_url()
, the URL is never actually set up to bewss
when the URL passed on the configuration interface ishttps
.However,
wss://music.dragonfear/ws
doesn't work either. Nor doeswss://music.dragonfear
.I can verify that the HA machine can retrieve
https://music.dragonfear
just fine, even from the Python used in the HA setup. No errors appear on the log either. It would be fantastic if the actual error was in the log!What version of Home Assistant Core has the issue?
core-2024.12.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
music_assistant
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: