Skip to content
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

Can't login properly and can't play music #389

Open
bonzenpaule opened this issue Jan 4, 2025 · 0 comments
Open

Can't login properly and can't play music #389

bonzenpaule opened this issue Jan 4, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@bonzenpaule
Copy link

Enable DEBUG Output
Dieser Fehler stammt von einer benutzerdefinierten Integration

Logger: custom_components.ytube_music_player.media_player
Quelle: custom_components/ytube_music_player/media_player.py:2138
Integration: YouTube Music Player (Dokumentation, Probleme)
Erstmals aufgetreten: 11:54:20 (7 Vorkommnisse)
Zuletzt protokolliert: 17:54:04

Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1136, in async_update_playlists self._playlists = await self.hass.async_add_executor_job(lambda: self._api.get_library_playlists(limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ytube_music_player/media_player.py", line 1136, in self._playlists = await self.hass.async_add_executor_job(lambda: self._api.get_library_playlists(limit=self._trackLimit)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/ytmusicapi/mixins/library.py", line 33, in get_library_playlists response = self._send_request(endpoint, body) File "/usr/local/lib/python3.13/site-packages/ytmusicapi/ytmusic.py", line 278, in _send_request raise YTMusicServerError(message + error) ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 401: Unauthorized. You must be signed in to perform this operation.
Traceback (most recent call last): File "/usr/local/lib/python3.13/site-packages/ytmusicapi/navigation.py", line 117, in nav root = root[k] ~~~~^^^ KeyError: 'contents' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1653, in async_play_media self._tracks = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ytube_music_player/media_player.py", line 1653, in self._tracks = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, limit=self._trackLimit)) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/ytmusicapi/mixins/playlists.py", line 112, in get_playlist header_data = nav(response, [*TWO_COLUMN_RENDERER, *TAB_CONTENT, *SECTION_LIST_ITEM]) File "/usr/local/lib/python3.13/site-packages/ytmusicapi/navigation.py", line 121, in nav raise type(e)(f"Unable to find '{k}' using path {items!r} on {root!r}, exception: {e}") KeyError: "Unable to find 'contents' using path ['contents', 'twoColumnBrowseResultsRenderer', 'tabs', 0, 'tabRenderer', 'content', 'sectionListRenderer', 'contents', 0] on {'trackingParams': 'CAIQui8iEwixhaHS-NuKAxUn_0IFHanaA40='}, exception: 'contents'"
Traceback (most recent call last): File "/config/custom_components/ytube_music_player/media_player.py", line 1625, in async_play_media playlist_info = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, limit=self._trackLimit)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/ytube_music_player/media_player.py", line 1625, in playlist_info = await self.hass.async_add_executor_job(lambda: self._api.get_playlist(media_id, limit=self._trackLimit)) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/site-packages/ytmusicapi/mixins/playlists.py", line 110, in get_playlist response = self._send_request(endpoint, body) File "/usr/local/lib/python3.13/site-packages/ytmusicapi/ytmusic.py", line 278, in _send_request raise YTMusicServerError(message + error) ytmusicapi.exceptions.YTMusicServerError: Server returned HTTP 404: Not Found. Requested entity was not found.

Describe the bug
I followed the instructions to install the integration and copied the cockiedata. The integration gets installed but I think something with the authentication is wrong. I'm not able to play music and the playlists are not showing, I only get "loading". When I try to play a play a playlist with the media ID nothing happes and I get the error I posted above.

Version
20241229.01

Thanks

@bonzenpaule bonzenpaule added the bug Something isn't working label Jan 4, 2025
@bonzenpaule bonzenpaule changed the title Can't login propertly and can't play music Can't login properly and can't play music Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant