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

Cannot read property 'replace' #1

Open
walmer-bolfet opened this issue Dec 17, 2015 · 0 comments
Open

Cannot read property 'replace' #1

walmer-bolfet opened this issue Dec 17, 2015 · 0 comments

Comments

@walmer-bolfet
Copy link

My Homebridge is crashing periodically - at least once a day. I don't know exactly when, or if it is assocated with a current action. When I check on it I see the following and expect it is related to Applescript. Anyone have any ideas about what to do?

/usr/local/lib/node_modules/homebridge-applescript/index.js:24
var command = accessory[prop].replace(/''/g, '"');

TypeError: Cannot read property 'replace' of undefined
at ApplescriptAccessory.setState (/usr/local/lib/node_modules/homebridge-applescript/index.js:24:31)
at emitThree (events.js:97:13)
at emit (events.js:175:7)
at Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:152:10)
at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:516:22)
at emitThree (events.js:97:13)
at HAPServer.emit (events.js:175:7)
at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:682:10)
at HAPServer. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:172:39)
at emitNone (events.js:67:13)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)

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