Open Camatobe opened 3 weeks ago
@Camatobe
Cannot replicate the error. You are receiving 104 errors, this shouldn't be the case. The error is coming from the connection pool library. This points to the likelihood that something is faulty in your networking.
Seem to indicate that the error is linked to ipv6 error. My other suspect would be the Spotify integration having a bad redirect. Can you confirm the Spotify integration is able to read and interact with the API before we go further?
Thank you for looking into this! I really appreciate it! The Spotify integration was able to communicate with the API— the media player entity could pause, play, and change the volume. I reloaded the Spotify integration, cleared the frontend cache, and it worked. The strange thing is, I did the same thing a few weeks ago, and there was no change.
Since it worked after clearing the frontend cache, I suspect the bubble card might be the culprit. I have the Spotify card inside a "popup," and the card only loads when the popup is opened. I'll investigate this outside of a popup card because it still only works one out of three times within the popup.
/edit: Nope also outside the bubblecard popup this issue exists.
Indeed, something seems wrong with the spotify entity. I added one log here:
Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:942
Erstmals aufgetreten: 14:40:30 (4 Vorkommnisse)
Zuletzt protokolliert: 14:42:00
Update for media_player.spotify fails
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1080, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs, sock=sock)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1149, in create_connection
transport, protocol = await self._create_connection_transport(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1182, in _create_connection_transport
await waiter
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 978, in _read_ready__get_buffer
nbytes = self._sock.recv_into(buf)
^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionResetError: [Errno 104] Connection reset by peer
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update
await hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 98, in wrapper
result = func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/spotify/media_player.py", line 412, in update
).result()
^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 531, in async_ensure_token_valid
new_token = await self.implementation.async_refresh_token(self.token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 103, in async_refresh_token
new_token = await self._async_refresh_token(token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 193, in _async_refresh_token
new_token = await self._token_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 212, in _token_request
resp = await session.post(self.token_url, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 657, in _request
conn = await self._connector.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 564, in connect
proto = await self._create_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 975, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1350, in _create_direct_connection
raise last_exc
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1319, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/connector.py", line 1088, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host accounts.spotify.com:443 ssl:default [Connection reset by peer]
And also a log about:
Logger: homeassistant.components.spotify
Quelle: helpers/update_coordinator.py:386
Integration: Spotify (Dokumentation, Probleme)
Erstmals aufgetreten: 15:57:27 (2 Vorkommnisse)
Zuletzt protokolliert: 17:42:27
Error fetching MYSPOTIFYNAME Devices data:
I apologize for not having thoroughly tested this yet. If the issue cannot be reproduced or if it’s not related to Spotcast or the Spotify card itself, please feel free to close the issue.
However, if there's anything else I can do to help fix the bug, just let me know.
Bug Ticket
Describe the bug
Spotcast throws an Error, everytime the Spotify-Card trys to load my Playlists. – They are not visible in the frontend. – the Multiroom-Switcher is working, but playlists are not shown since a few weeks. I renewed cookie values multiple time, reconfigured spotcast and spotify card. – Since Spotify Card is not actively developed anymore, I was not sure if its ok to write the bug here, but the log says the error comes from the spotcast integration. (no JS console-logs for the frontend-card) – I attached the Log Error at the end.
My reproduce steps are:
Troubleshooting
Make sure to validate all the elements before submitting the ticket (Exception to the steps marked as optional)
sp_dc
andsp_key
values and restarted Home Assistant (see README)Environment
Configuration
Service Call
If relevant, provide a
yaml
of the service call or explain the action taken to replicate the issue.Logs