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

Startup crash with v2.3.1 #47

Closed
mattsch opened this issue Dec 1, 2016 · 3 comments · Fixed by #48
Closed

Startup crash with v2.3.1 #47

mattsch opened this issue Dec 1, 2016 · 3 comments · Fixed by #48

Comments

@mattsch
Copy link

mattsch commented Dec 1, 2016

After updating to 2.3.1 and running npm update, I'm getting the following error:

Dec 01 14:07:55 ha node[24016]: Starting discovery.
Dec 01 14:07:55 ha node[24016]: /home/pi/harmony-api/app.js:101
Dec 01 14:07:55 ha node[24016]: activitySlug = harmonyHubStates[hubSlug].current_activity.slug
Dec 01 14:07:55 ha node[24016]: ^
Dec 01 14:07:55 ha node[24016]: TypeError: Cannot read property 'current_activity' of undefined
Dec 01 14:07:55 ha node[24016]: at MqttClient.<anonymous> (/home/pi/harmony-api/app.js:101:45)
Dec 01 14:07:55 ha node[24016]: at emitThree (events.js:97:13)
Dec 01 14:07:55 ha node[24016]: at MqttClient.emit (events.js:175:7)
Dec 01 14:07:55 ha node[24016]: at MqttClient._handlePublish (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:792:12)
Dec 01 14:07:55 ha node[24016]: at MqttClient._handlePacket (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:282:12)
Dec 01 14:07:55 ha node[24016]: at process (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:238:12)
Dec 01 14:07:55 ha node[24016]: at MqttClient._handlePacket (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:290:7)
Dec 01 14:07:55 ha node[24016]: at process (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:238:12)
Dec 01 14:07:55 ha node[24016]: at Writable.writable._write (/home/pi/harmony-api/node_modules/mqtt/lib/client.js:248:5)
Dec 01 14:07:55 ha node[24016]: at doWrite (/home/pi/harmony-api/node_modules/mqtt/node_modules/readable-stream/lib/_stream_writable.js:237:10)

Reverting back to 2.1.0 fixes things.

@maddox
Copy link
Owner

maddox commented Dec 1, 2016

/cc @farooqu

@maddox maddox closed this as completed in #48 Dec 1, 2016
maddox added a commit that referenced this issue Dec 1, 2016
fix issue #47, startup crash
@maddox
Copy link
Owner

maddox commented Dec 1, 2016

Fixed in #48.

2.3.2 released.

@mattsch
Copy link
Author

mattsch commented Dec 1, 2016

Thanks!

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

Successfully merging a pull request may close this issue.

2 participants