{"action":"opened","issue":{"url":"https://api.github.com/repos/grover/homebridge-dacp/issues/29","repository_url":"https://api.github.com/repos/grover/homebridge-dacp","labels_url":"https://api.github.com/repos/grover/homebridge-dacp/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/grover/homebridge-dacp/issues/29/comments","events_url":"https://api.github.com/repos/grover/homebridge-dacp/issues/29/events","html_url":"https://github.com/grover/homebridge-dacp/issues/29","id":302245168,"number":29,"title":"[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)","user":{"login":"DJay-X","id":3874239,"avatar_url":"https://avatars3.githubusercontent.com/u/3874239?v=4","gravatar_id":"","url":"https://api.github.com/users/DJay-X","html_url":"https://github.com/DJay-X","followers_url":"https://api.github.com/users/DJay-X/followers","following_url":"https://api.github.com/users/DJay-X/following{/other_user}","gists_url":"https://api.github.com/users/DJay-X/gists{/gist_id}","starred_url":"https://api.github.com/users/DJay-X/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DJay-X/subscriptions","organizations_url":"https://api.github.com/users/DJay-X/orgs","repos_url":"https://api.github.com/users/DJay-X/repos","events_url":"https://api.github.com/users/DJay-X/events{/privacy}","received_events_url":"https://api.github.com/users/DJay-X/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T10:27:01Z","updated_at":"2018-03-05T10:27:01Z","closed_at":null,"author_association":"NONE","body":"Hey Mister ;)\r\n\r\nfrom time to time I get this error and DACP stops working. Homebridge is still running though.\r\nWhen I close iTunes and open it again, everything is back working.\r\nI'm not sure if it is about when the iMac is going to sleep and wake up.\r\nHomebridge is running on a Raspi.\r\n\r\nAs always, thanks a a lot. \r\n\r\n`[2018-3-5 11:19:58] [DACP]\r\n[2018-3-5 11:19:58] [DACP] Fatal error while talking to iTunes:\r\n[2018-3-5 11:19:58] [DACP]\r\n[2018-3-5 11:19:58] [DACP]   Error: TypeError: Cannot read property 'host' of undefined\r\n    at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67)\r\n    at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23)\r\n    at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41)\r\n    at Characteristic.Mute.emit (events.js:127:13)\r\n    at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10)\r\n    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8)\r\n    at HAPServer.emit (events.js:127:13)\r\n    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10)\r\n    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)\r\n    at IncomingMessage.emit (events.js:127:13)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n[2018-3-5 11:19:58] [DACP]\r\n[2018-3-5 11:19:58] [DACP] Returning current playback state: paused\r\n[2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes:\r\n[2018-3-5 11:21:00] [DACP]\r\n[2018-3-5 11:21:00] [DACP]   Error: TypeError: Cannot read property 'host' of undefined\r\n    at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67)\r\n    at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23)\r\n    at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41)\r\n    at Characteristic.Volume.emit (events.js:127:13)\r\n    at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10)\r\n    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8)\r\n    at HAPServer.emit (events.js:127:13)\r\n    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10)\r\n    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)\r\n    at IncomingMessage.emit (events.js:127:13)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n[2018-3-5 11:21:00] [DACP]\r\n[2018-3-5 11:21:00] [DACP] Fatal error while talking to iTunes:\r\n[2018-3-5 11:21:00] [DACP]\r\n[2018-3-5 11:21:00] [DACP]   Error: TypeError: Cannot read property 'host' of undefined\r\n    at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67)\r\n    at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23)\r\n    at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41)\r\n    at Characteristic.Mute.emit (events.js:127:13)\r\n    at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10)\r\n    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8)\r\n    at HAPServer.emit (events.js:127:13)\r\n    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10)\r\n    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)\r\n    at IncomingMessage.emit (events.js:127:13)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n[2018-3-5 11:21:00] [DACP]\r\n[2018-3-5 11:21:00] [DACP] Returning current playback state: paused\r\n[2018-3-5 11:21:11] [DACP] Fatal error while talking to iTunes:\r\n[2018-3-5 11:21:12] [DACP]\r\n[2018-3-5 11:21:12] [DACP]   Error: TypeError: Cannot read property 'host' of undefined\r\n    at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67)\r\n    at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23)\r\n    at SpeakerService._getVolume (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:72:41)\r\n    at Characteristic.Volume.emit (events.js:127:13)\r\n    at Characteristic.Volume.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10)\r\n    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8)\r\n    at HAPServer.emit (events.js:127:13)\r\n    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10)\r\n    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)\r\n    at IncomingMessage.emit (events.js:127:13)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n[2018-3-5 11:21:12] [DACP]\r\n[2018-3-5 11:21:12] [DACP] Fatal error while talking to iTunes:\r\n[2018-3-5 11:21:12] [DACP]\r\n[2018-3-5 11:21:12] [DACP]   Error: TypeError: Cannot read property 'host' of undefined\r\n    at DacpClient._withConnection (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:229:67)\r\n    at DacpClient.getProperty (/usr/local/lib/node_modules/homebridge-dacp/src/dacp/DacpClient.js:153:23)\r\n    at SpeakerService._getMute (/usr/local/lib/node_modules/homebridge-dacp/src/SpeakerService.js:98:41)\r\n    at Characteristic.Mute.emit (events.js:127:13)\r\n    at Characteristic.Mute.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:162:10)\r\n    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:756:20)\r\n    at Array.forEach (<anonymous>)\r\n    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:720:8)\r\n    at HAPServer.emit (events.js:127:13)\r\n    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:926:10)\r\n    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)\r\n    at IncomingMessage.emit (events.js:127:13)\r\n    at endReadableNT (_stream_readable.js:1101:12)\r\n    at process._tickCallback (internal/process/next_tick.js:114:19)\r\n[2018-3-5 11:21:12] [DACP]\r\n[2018-3-5 11:21:12] [DACP] Returning current playback state: paused`\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"DJay-X"}}