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

zonegrouptopology json parsing error #35

Open
daragallagher opened this issue May 14, 2019 · 0 comments
Open

zonegrouptopology json parsing error #35

daragallagher opened this issue May 14, 2019 · 0 comments

Comments

@daragallagher
Copy link

I think this change has occurred with a recent Sonos firmware update as I had also been using scripts to interact with the speaker http which broke recently while parsing the topology json.

TypeError: Cannot read property 'ZoneGroup' of undefined
at parseXML (/home/pi/sonos/denysvitali/sonos-web/server.js:850:59)
at Parser. (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:303:18)
at Parser.emit (events.js:189:13)
at SAXParser.onclosetag (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:261:26)
at emit (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:322:31)
at Parser.parseString (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:5:59)
at exports.parseString (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:354:19)
at Listener.listener.on (/home/pi/sonos/denysvitali/sonos-web/server.js:845:21)
at Listener.emit (events.js:189:13)
at Listener. (/home/pi/sonos/denysvitali/sonos-web/node_modules/sonos/lib/events/listener.js:63:12)
at Parser. (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:303:18)
at Parser.emit (events.js:189:13)
at SAXParser.onclosetag (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:261:26)
at emit (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:624:35)
at emitNode (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:629:5)
at closeTag (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:889:7)
at SAXParser.write (/home/pi/sonos/denysvitali/sonos-web/node_modules/sax/lib/sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (/home/pi/sonos/denysvitali/sonos-web/node_modules/xml2js/lib/parser.js:322:31)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant