Closed 03397 closed 4 years ago
All the errors look like they relate to your media_player.sonos_one Is that working correctly?
0.108 has a breaking change - Sonos entities playing radio streams used to cram the radio name, the artist and the song name into two attributes.
@teamsuperpanda Yes it seems that nothing has broken even if I am playing radio stations through sonos. The error messages appear randomly, even when sonos is not playing something. What is this "Event is not JSON serializable"? If I understand correctly, the recorder is waiting the json to be in a certain format and it is receiving another?
Hey there @amelchio, mind taking a look at this issue as its been labeled with a integration (sonos
) you are listed as a codeowner for? Thanks!
How do you start the music that causes this issue? Please be very specific :)
While I am playing music no error is spit at that time. The errors are appearing random time and while I am not playing anything.
I am playing music using Sonos application or inside Home Assistant using a card that lists all my favourites from the Sonos application and then I select from there what I want to be played.
Should be fixed in 0.108.6.
The problem
I am getting the errors below.
Environment
I am also using mariadb for the recorder.
Error doing job: Fatal read error on socket transport 8:54:54 PM – /srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py (ERROR) - message first occurred at 5:31:33 PM and shows up 9 times Client exceeded max pending messages [2]: 512 7:07:59 PM – websocket_api (ERROR) http://192.168.10.101:80/api/bouquets is unreachable. 6:06:42 PM – components/enigma2/media_player.py (WARNING) - message first occurred at 6:03:36 PM and shows up 18 times Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> 5:33:03 PM – recorder (WARNING) - message first occurred at 5:32:48 PM and shows up 2 times State is not JSON serializable: <state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00> 5:32:48 PM – recorder (WARNING) Error doing job: SSL error in data received 5:13:51 PM – /srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py (ERROR)
Log Details (WARNING) Logger: homeassistant.components.recorder Source: components/recorder/init.py:377 Integration: recorder (documentation, issues) First occurred: 5:32:48 PM (2 occurrences) Last logged: 5:33:03 PM
Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> Connection lost. Reconnecting…
Problem-relevant
configuration.yaml
Traceback/Error logs
Logger: homeassistant.components.recorder Source: components/recorder/init.py:390 Integration: recorder (documentation, issues) First occurred: 5:32:48 PM (1 occurrences) Last logged: 5:32:48 PM
State is not JSON serializable: <state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>
Developer Tools Error doing job: Fatal read error on socket transport 8:54:54 PM – /srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py (ERROR) - message first occurred at 5:31:33 PM and shows up 9 times Client exceeded max pending messages [2]: 512 7:07:59 PM – websocket_api (ERROR) http://192.168.10.101:80/api/bouquets is unreachable. 6:06:42 PM – components/enigma2/media_player.py (WARNING) - message first occurred at 6:03:36 PM and shows up 18 times Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> 5:33:03 PM – recorder (WARNING) - message first occurred at 5:32:48 PM and shows up 2 times State is not JSON serializable: <state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00> 5:32:48 PM – recorder (WARNING) Error doing job: SSL error in data received 5:13:51 PM – /srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py (ERROR)
Log Details (WARNING) Logger: homeassistant.components.recorder Source: components/recorder/init.py:377 Integration: recorder (documentation, issues) First occurred: 5:32:48 PM (2 occurrences) Last logged: 5:33:03 PM
Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> Event is not JSON serializable: <Event state_changed[L]: entity_id=media_player.sonos_one, old_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=<built-in method title of str object at 0xb6761960>, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>, new_state=<state media_player.sonos_one=paused; source_list=['89.0 KISS FM | (Adult Hits)', 'Anastacia Greatest hits', 'Angela Classics', 'Angela Favourite', 'Kanali 98.6 (Greek Music)', 'Klik FM 105.5 (Adult Hits)', 'Love fm Cyprus', 'Nicolas Christmas', 'Nicolas Classics', 'Nicolas Greek', 'Nicolas Kenny G', 'Nicolas Laika', 'Super FM 104.8 | (European Music)', 'Super Sport FM 104.0 (Sports Talk & News)'], volume_level=0.35, is_volume_muted=False, media_content_id=x-sonosapi-stream:s73578?sid=254&flags=8224&sn=0, media_content_type=music, media_title=Klik FM, source=Klik FM 105.5 (Adult Hits), shuffle=False, sonos_group=['media_player.sonos_one'], friendly_name=Sonos One, entity_picture=/api/media_player_proxy/media_player.sonos_one?token=9d8f9d145f91289e85980c1d132435e4b898033b4ac68f62ff41e2036c102c90&cache=f7b4267caf71048e, supported_features=64063 @ 2020-04-14T15:04:04.528963+03:00>> Connection lost. Reconnecting…
Additional information