[DACP] Fatal error while talking to iTunes: Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) #29
from time to time I get this error and DACP stops working. Homebridge is still running though.
When I close iTunes and open it again, everything is back working.
I'm not sure if it is about when the iMac is going to sleep and wake up.
Homebridge is running on a Raspi.
As always, thanks a a lot.
[2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Returning current playback state: paused [2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41) at Characteristic.Volume.emit (events.js:127:13) at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Returning current playback state: paused [2018-3-5 11:21:11] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41) at Characteristic.Volume.emit (events.js:127:13) at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Returning current playback state: paused
Hey Mister ;)
from time to time I get this error and DACP stops working. Homebridge is still running though. When I close iTunes and open it again, everything is back working. I'm not sure if it is about when the iMac is going to sleep and wake up. Homebridge is running on a Raspi.
As always, thanks a a lot.
[2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:19:58] [DACP] [2018-3-5 11:19:58] [DACP] Returning current playback state: paused [2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41) at Characteristic.Volume.emit (events.js:127:13) at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:00] [DACP] [2018-3-5 11:21:00] [DACP] Returning current playback state: paused [2018-3-5 11:21:11] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41) at Characteristic.Volume.emit (events.js:127:13) at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Fatal error while talking to iTunes: [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Error: TypeError: Cannot read property 'host' of undefined at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67) at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23) at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41) at Characteristic.Mute.emit (events.js:127:13) at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10) at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20) at Array.forEach (<anonymous>) at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8) at HAPServer.emit (events.js:127:13) at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10) at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39) at IncomingMessage.emit (events.js:127:13) at endReadableNT (_stream_readable.js:1101:12) at process._tickCallback (internal/process/next_tick.js:114:19) [2018-3-5 11:21:12] [DACP] [2018-3-5 11:21:12] [DACP] Returning current playback state: paused