question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

YouTube Music Websocket API "Unknown error". Won't play any music from YouTube music.

See original GitHub issue

What version of Music Assistant has the issue?

2022.11.0

The problem

After updating HA and MA and having to relog into YouTube Music, Music Assistant will not stream Youtube music to my third-gen Chromecast. I can cast from my phone to it but not through music assistant. It says unknown error. I can play local media through it though

How to reproduce

playing anything from youtube music to the chrome cast.

Relevant log output

`Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/mass/websockets.py:1106 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 5:08:43 PM (2 occurrences) Last logged: 5:09:59 PM

[281473137771184] Error handling message: Unknown error (unknown_error) from 127.0.0.1 (Mozilla/5.0 (Linux; Android 12; LE2127 Build/RKQ1.211119.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/106.0.5249.126 Mobile Safari/537.36 Home Assistant/beta-2862-66bc2603-2862 (Android 12; LE2127)) Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py”, line 27, in _handle_async_response await func(hass, connection, msg) File “/config/custom_components/mass/websockets.py”, line 114, in async_get_mass_func await orig_func(hass, connection, msg, mass) File “/config/custom_components/mass/websockets.py”, line 1106, in websocket_playerqueue_command await player_queue.play_index(msg[COMMAND_ARG]) File “/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py”, line 535, in play_index stream = await self.queue_stream_start( File “/usr/local/lib/python3.10/site-packages/music_assistant/models/player_queue.py”, line 712, in queue_stream_start stream = await self.mass.streams.start_queue_stream( File “/usr/local/lib/python3.10/site-packages/music_assistant/controllers/streams.py”, line 322, in start_queue_stream streamdetails = await get_stream_details(self.mass, first_item, queue.queue_id) File “/usr/local/lib/python3.10/site-packages/music_assistant/helpers/audio.py”, line 253, in get_stream_details streamdetails: StreamDetails = await music_prov.get_stream_details( File “/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/ytmusic/ytmusic.py”, line 394, in get_stream_details stream_format = await self._parse_stream_format(track_obj) File “/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/ytmusic/ytmusic.py”, line 662, in _parse_stream_format for adaptive_format in track_obj[“streamingData”][“adaptiveFormats”]: KeyError: ‘streamingData’ `

Additional information

No response

What version of Home Assistant Core are your running

2022.11.1

What type of installation are you running?

Home Assistant Supervised

On what type of hardware are you running?

ODROID

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Bretthansenpccommented, Nov 10, 2022

FYI: I had a similar error message. Running HA in its docker container, so components should be up to date. (Looks like Python 3.10.) Anyway, I redid the cookie capture from music.youtube.com and re-configured Music Assistant and it works now.

Well that worked thank you!!

0reactions
francais01commented, Nov 9, 2022

FYI: I had a similar error message. Running HA in its docker container, so components should be up to date. (Looks like Python 3.10.) Anyway, I redid the cookie capture from music.youtube.com and re-configured Music Assistant and it works now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix YouTube Music App Network Connection Problem ...
YoutubeMusic #NetworkError #InternetErrorHii Friends Welcome Back My Channel MK Tech ..........In This Tutorial How To Fix YouTube Music App ...
Read more >
Youtube Music - Media Browser - Home Assistant Community
Hi, playlist radio doesn't seem to work. For testing purposes I created a playlist with only one track and only this one track...
Read more >
How do I fix this? - YouTube Music Community - Google Support
The reason some of the songs in your playlists show as unavailable is because that particular video is not considered the "official" source....
Read more >
How do I test for connectivity issues? - Kahoot Support
This checks that you have sufficient internet speed. It will let you know roughly how many players can connect to your game before...
Read more >
yt-dlp - PyPI
255kbps audio is extracted (if available) from YouTube Music when premium cookies are given; Channel URLs download all uploads of the channel, including...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found