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
Errors parsing events #276
Comments
Hmmm... I've been seeing a few of these errors recently. It looks as though the Sonos firmware fails properly to stick to the official UPnP DIDL-Lite specification. For example, a DIDL object.container should be represented in XML by a tag, but Sonos sometimes (but not always) uses an tag instead. For the moment, the best fix will be to remove the check at line 349 of data_structures.py, i,e, comment out the following lines: if not element.tag.endswith(cls.tag):
raise DIDLMetadataError(
"Wrong element. Expected '<{0}>',"
" got '<{1}>'".format(cls.tag, element.tag)) I'll push a fix when I can figure out what's going on |
Looks like this workaround was applied and then unapplied? I'm still seeing this issue. |
Still seeing this also. Version of soco installed is 0.11.1. |
@mikix I'm unsure if it was ever applied. The way I read @lawrenceakka message, he would look more into it before applying it (and then I guess he got busy with real life). The problem with just applying is, that these message in principle should follow a specification and that is helpful to make sure that we understand the content. Applying the fix would remove a large part of the checks of specification adherence which is not really desirable. What would be better is, if we have to deviate from the spec, to do so in as limited and well documented manner as possible. I'll look into this and at adding some code to hopefully capture event streams to make it easier to share failing events and debug them. I know this sucks, but have a little more patience. |
It appears that Sonos uses |
I'm starting to experiment with watching for events, using the example code from the first comment here: #194
But it seems that the event parsing code is failing on some of the events it is receiving. I'm running the SoCo code from master today (9dc84e3).
I added a bit more logging and here's an excerpt.
The text was updated successfully, but these errors were encountered: