Open DBorello opened 1 month ago
This appears to be caused by a Sonos speaker being in "line in" mode. Changing modes stops the error.
The event that causes the exception:
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><LastChange><Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="x-rincon-stream:RINCON_949F3E5352EC01400"/><CurrentTrackDuration val=""/><CurrentTrackMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;-1&quot; parentID=&quot;-1&quot; restricted=&quot;true&quot;&gt;&lt;res protocolInfo=&quot;x-rincon-stream:*:*:*&quot;&gt;x-rincon-stream:RINCON_949F3E5352EC01400&lt;/res&gt;&lt;r:audioInputIcon&gt;AudioComponent&lt;/r:audioInputIcon&gt;&lt;dc:title&gt;Audio Component&lt;/dc:title&gt;&lt;upnp:class&gt;object.item&lt;/upnp:class&gt;&lt;r:episodeNumber&gt;0&lt;/r:episodeNumber&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><r:NextTrackURI val=""/><r:NextTrackMetaData val=""/><r:EnqueuedTransportURI val=""/><r:EnqueuedTransportURIMetaData val=""/><PlaybackStorageMedium val="NETWORK"/><AVTransportURI val="x-rincon-stream:RINCON_949F3E5352EC01400"/><AVTransportURIMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;playback&quot; parentID=&quot;0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;loadLineIn&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.linein&lt;/upnp:class&gt;&lt;res x-rincon-stream&gt;x-rincon-stream:RINCON_949F3E5352EC01400&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><NextAVTransportURI val=""/><NextAVTransportURIMetaData val=""/><CurrentTransportActions val="Set, Stop, Play"/><r:CurrentValidPlayModes val=""/><r:DirectControlClientID val=""/><r:DirectControlIsSuspended val="0"/><r:DirectControlAccountID val=""/><TransportStatus val="OK"/><r:SleepTimerGeneration val="0"/><r:AlarmRunning val="0"/><r:SnoozeRunning val="0"/><r:RestartPending val="0"/><TransportPlaySpeed val="NOT_IMPLEMENTED"/><CurrentMediaDuration val="NOT_IMPLEMENTED"/><RecordStorageMedium val="NOT_IMPLEMENTED"/><PossiblePlaybackStorageMedia val="NONE, NETWORK"/><PossibleRecordStorageMedia val="NOT_IMPLEMENTED"/><RecordMediumWriteStatus val="NOT_IMPLEMENTED"/><CurrentRecordQualityMode val="NOT_IMPLEMENTED"/><PossibleRecordQualityModes val="NOT_IMPLEMENTED"/></InstanceID></Event></LastChange></e:property></e:propertyset>
Hey there @jjlawren, @peterager, mind taking a look at this issue as it has been labeled with an integration (sonos
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
sonos documentation sonos source (message by IssueLinks)
Did this ever work ok? If so what version?
Any network stuff we should be aware of? Proxies. VPNS.
I didn’t try on an earlier version.
No other network funny business.
The good news is that it is easy to reproduce.
On Wed, Jul 10, 2024 at 07:29 Pete Sage @.***> wrote:
Did this ever work ok? If so what version?
Any network stuff we should be aware of? Proxies. VPNS.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/121638#issuecomment-2220389208, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHCVOTMOLAD5TMWZ77DVJLZLUSK5AVCNFSM6AAAAABKT25T4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRQGM4DSMRQHA . You are receiving this because you authored the thread.Message ID: @.***>
-
Based on the exception log, it looks like the Sonos speaker is sending invalid XML and the parsing fails. That really should not be happening. Try power cycling that speaker and restarting HA to see if it resolves. Also check to see if Sonos updates are available.
None of my speakers have a line in, so I can't test. I will take a look at the message to see why it isn't parsing.
I agree that the speaker appears to be sending invalid XML which is odd.
There aren't any Sonos updates available. I restarted the speaker and home assistant, same error.
The source name is "line-in". I wonder if the "-" isn't being properly escaped.
Source as line-in:
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><LastChange><Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"><InstanceID val="0"><TransportState val="PLAYING"/><CurrentPlayMode val="NORMAL"/><CurrentCrossfadeMode val="0"/><NumberOfTracks val="1"/><CurrentTrack val="1"/><CurrentSection val="0"/><CurrentTrackURI val="x-rincon-stream:RINCON_949F3E5352EC01400"/><CurrentTrackDuration val=""/><CurrentTrackMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;-1&quot; parentID=&quot;-1&quot; restricted=&quot;true&quot;&gt;&lt;res protocolInfo=&quot;x-rincon-stream:*:*:*&quot;&gt;x-rincon-stream:RINCON_949F3E5352EC01400&lt;/res&gt;&lt;r:audioInputIcon&gt;AudioComponent&lt;/r:audioInputIcon&gt;&lt;dc:title&gt;Audio Component&lt;/dc:title&gt;&lt;upnp:class&gt;object.item&lt;/upnp:class&gt;&lt;r:episodeNumber&gt;0&lt;/r:episodeNumber&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><r:NextTrackURI val=""/><r:NextTrackMetaData val=""/><r:EnqueuedTransportURI val=""/><r:EnqueuedTransportURIMetaData val=""/><PlaybackStorageMedium val="NETWORK"/><AVTransportURI val="x-rincon-stream:RINCON_949F3E5352EC01400"/><AVTransportURIMetaData val="&lt;DIDL-Lite xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:r=&quot;urn:schemas-rinconnetworks-com:metadata-1-0/&quot; xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot;&gt;&lt;item id=&quot;playback&quot; parentID=&quot;0&quot; restricted=&quot;false&quot;&gt;&lt;dc:title&gt;loadLineIn&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.audioItem.linein&lt;/upnp:class&gt;&lt;res x-rincon-stream&gt;x-rincon-stream:RINCON_949F3E5352EC01400&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"/><NextAVTransportURI val=""/><NextAVTransportURIMetaData val=""/><CurrentTransportActions val="Set, Stop, Play"/><r:CurrentValidPlayModes val=""/><r:DirectControlClientID val=""/><r:DirectControlIsSuspended val="0"/><r:DirectControlAccountID val=""/><TransportStatus val="OK"/><r:SleepTimerGeneration val="0"/><r:AlarmRunning val="0"/><r:SnoozeRunning val="0"/><r:RestartPending val="0"/><TransportPlaySpeed val="NOT_IMPLEMENTED"/><CurrentMediaDuration val="NOT_IMPLEMENTED"/><RecordStorageMedium val="NOT_IMPLEMENTED"/><PossiblePlaybackStorageMedia val="NONE, NETWORK"/><PossibleRecordStorageMedia val="NOT_IMPLEMENTED"/><RecordMediumWriteStatus val="NOT_IMPLEMENTED"/><CurrentRecordQualityMode val="NOT_IMPLEMENTED"/><PossibleRecordQualityModes val="NOT_IMPLEMENTED"/></InstanceID></Event></LastChange></e:property></e:propertyset>
Source as spotify:
<e:propertyset xmlns:e="urn:schemas-upnp-org:event-1-0"><e:property><ThirdPartyMediaServersX>2:8Yf/tlNYiimpaVAY2aVCUORNZ6sm6v2pGxMbdQEecaJXm6Tr8g5az8p9ny6FR9Du3ofi0QSNZWsZXqQFzZq/hz1Jjy0mPkgNKhI63DU7OvC4PBlUF4FzaTxAUv02MkW6AWGXW8FDcrTB4k05slU2UQ5YMXGK00keK1/F220OkTJ4Hgbx2qV1dsGMjtMouCWi68fH9rx6/iP21WpyRp33W9vU81E01mc2i4WcLefbpr8ryMhSsUEqTGt/nJ59XAAYs4ytS6+OWf/equVDqhUMzQ0EHdne2g34VgFfIanPwRDtIRH7kZ1UysiQ8+VGt+mOOdrsiXEmQesyT1bO3Es9CPR3pqfzRPh5HN06aZkPJsdfz0LQu86L+MlYHrgOHWQw1TmME72v7ETgHe8OhSxHdVTFylfyMxeJL8r/SFHY9GmBGsG3LMiX+q319/BUcQOXck3YjCcYu4osSt5TgLCpmlHv1ANUPB9j3AdOjh04xGfJ8sG94iPR9xQzZjxHKkw2EJsB8J6o0/J+3JALEZLWmeVsPiI4N6+65bl3DP0R1W3cN+OO7KK2wChuxnvQ+LWx8+MDvIPvZ5MNbMHh97r+iTxFOFPppRSNlRQxNUP7RBX/HYcMj1JAZVvYKTv7lVgTw7TsbbdaBp1MtcG0MvuGGgX3TFLzJlVMwavE1l8bViliRO3vhwp/5X6E9Ah5WgWJbGdKltikjwamtut3kDtYRuJ5BDrErweob5x84/p/SZKcKDBUZ7S+09YvoeRCcSkvkA9J4YN6cVJxmvDhdRdE/5pQlRxExqaZzax1FpINHSSX/0ZbN05G9kq6YecqCng9xtmN9JaUMh2vcEVgQaIXnhcWXlAYFlGvPzji90oPNy5Bb4JyCDW9Ho1Pee4AWLxMGv7J8vow6sam/vBM3r8h1O6nM2UomqYwuKkUTX8dP3JADU2I9LBTYjw95H/XIuQjXau+fuKDuq0coLk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B1eNEEoxWN3Fv2RXmAw+zH7UNi9lHMURBX4QUQW1i/LuDg56O8pl7ampItqSjRJ2OQvSHAgadT7LG30G6ak6h1210XDiL3/MA0P4VqtdRj6bKrN+HIeIExrOmM7AuhM4Kf1V7Jd9jMTJ/louT8/WPJ8AW+I=</ThirdPartyMediaServersX></e:property></e:propertyset>
With further work I'm able to generate the same error in the SoCo library using a test fixture. There is embedded XML within the XML and it is the parsing of this subelement:
<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/"
xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/">
<item id="playback" parentID="0" restricted="false">
<dc:title>loadLineIn</dc:title>
<upnp:class>object.item.audioItem.linein</upnp:class>
<res x-rincon-stream>x-rincon-stream:RINCON_949F3E5352EC01400</res></item></DIDL-Lite>
"res x-rincon-stream" is not a valid XML tag.
This appears to be an issue upstream in the SoCo library and have submitted an issue there
I am glad you were able to reproduce the issue. Thanks for pushing this upstream.
On Sat, Jul 13, 2024 at 08:15 Pete Sage @.***> wrote:
This appears to be an issue upstream in the SoCo library and have submitted an issue there
SoCo/SoCo#964 https://github.com/SoCo/SoCo/issues/964
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/121638#issuecomment-2226880366, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHCVOXFMERCUJ7ZV4T4IVDZMEK4RAVCNFSM6AAAAABKT25T4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRWHA4DAMZWGY . You are receiving this because you authored the thread.Message ID: @.***>
-
The problem
My instance recently developed a repeating python exception. It is persistent even in safe mode:
I am happy to help debug.
What version of Home Assistant Core has the issue?
core-2024.7.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
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?
No response
Additional information
No response