lukasroegner / homebridge-sonos-multiroom

Plugin for real Sonos multiroom experience in homebridge.
MIT License
35 stars 3 forks source link

JSON syntax error to API server causes homebridge to crash #12

Closed timwitty closed 3 years ago

timwitty commented 3 years ago

[2/9/2021, 8:09:15 PM] SyntaxError: Unexpected token x in JSON at position 27 at JSON.parse () at IncomingMessage. (/usr/lib/node_modules/homebridge-sonos-multiroom/src/sonos-api.js:68:33) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) [2/9/2021, 8:09:15 PM] Got SIGTERM, shutting down Homebridge...

I sent something like the following (without the quotes surrounding the value): { "current-track-uri": x- }

lukasroegner commented 3 years ago

Fixed in 0.5.1.