-
Notifications
You must be signed in to change notification settings - Fork 4
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
HomeBridge quits on error 'tls.convertNPNProtocols is not a function' #12
Comments
Strange. Which version of Node are you using? And which other plugins? |
Node version v8.9.4
|
I've reinstalled v2.0.0 and now it works without problems (with the above mentioned other plugins) |
My guess is that one of the other plugins, or one of its dependencies, might be using To prevent a dependency of Do you have a larger stacktrace for me? |
Hi Robert, I have the same problem. |
@gladiatormax same questions: which Node version are you using, and which other plugins? |
I am using node version 8.12.0 with, homebridge-zp v0.2.35 |
Since there's an overlap in the plugins that you both use, the problem might be caused by either Could you try and remove each one (separately) to see is the problem goes away? |
I reinstalled everything with nodejs version 8.12.0 because the zp pluging was asking for it and now it is working. |
@gladiatormax thanks for the update :) does sound like one of the other plugins needed to be updated. |
@robertklep Seems to be the same cause? In Nefit-easy-core, there is this line That is the one you are mentioning I think? |
@RaimondB yes, that line is likely to be causing the problem (in another Node.js module). I have to admit that assigning that function to I can't definitively say what's causing the error for your user, also because there are a lot of moving parts to their setup (Hassio, Node-RED, possibly other nodes that they have installed). |
I solved the issue by upgrading to node version v8.16.0. Version 2.1.2 of the plugin is now running fine. |
Since I installed the latest version (2.1.0) HomeBridge no longer starts, in the logfile I see the following statement:
TypeError: tls.convertNPNProtocols is not a function
followed by
Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Unit entered failed state. Oct 11 20:45:34 SACLRPi3 systemd[1]: homebridge.service: Failed with result 'exit-code'.
When I remove this plugin HomeBridge works.
The text was updated successfully, but these errors were encountered: