chanomie / homebridge-connectedbytcp

Home bridge Plugin for Connected by TCP
6 stars 3 forks source link

error.code: EPROTO #7

Closed lukewakeford closed 4 years ago

lukewakeford commented 4 years ago

Hey I've just re-installed homebridge on a new raspberry pi 3 A+ - Raspbian Buster Lite For some reason the ConnectedByTcp plugin now errors when trying to initialise - I managed to get a new a token manually using the curl command (in the readme) on my mac, running the same curl command on the pi fails, i'll update with the error later.

[12/13/2019, 22:37:44] [ConnectedByTcp] Initializing ConnectedByTcp platform...
[12/13/2019, 22:37:44] [ConnectedByTcp] in accessories
[12/13/2019, 22:37:45] [ConnectedByTcp] error.code: EPROTO
[12/13/2019, 22:37:45] [ConnectedByTcp] error.errno: EPROTO
[12/13/2019, 22:37:45] [ConnectedByTcp] error.syscall: write

It also seems to kill off subsequent plugin initialisation Any help appreciated.

lukewakeford commented 4 years ago

The fix for this was rolling back my node version.

Seems that at some point node stopped supporting whatever cipher the TCP hub is using for ssl.

I ended up installing n https://www.npmjs.com/package/n to change the system version of node and npm in one move. after it was installed i just ran n 8.0.0 and boom it all worked.