koalazak / dorita980

Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot
MIT License
931 stars 147 forks source link

Connection problem: ERR_SSL_UNSAFE_LEGACY_RENEGOTIATION_DISABLED #191

Open FrankSausF opened 2 months ago

FrankSausF commented 2 months ago

Hi guys, I keep on running into a problem connecting to my Roomba 960 via Raspberry Pi4. Output of getpassword starts with robot ID, blid, etc. but ends with: `node:events:495 throw er; // Unhandled 'error' event ^

Error: 407400B47F000000:error:0A000152:SSL routines:final_renegotiate:unsafe legacy renegotiation disabled:../ssl/statem/extensions.c:893:

Emitted 'error' event on TLSSocket instance at: at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { library: 'SSL routines', reason: 'unsafe legacy renegotiation disabled', code: 'ERR_SSL_UNSAFE_LEGACY_RENEGOTIATION_DISABLED' } ` Possibly, it's not really an issue for this project because it might result of my Debian environment rather than the specific coding.

Nevertheless, I might not be the only user that might run into it in conjunction with using this project.

Cheers!

Frank

msigmund commented 2 months ago

Hi Frank, I am running into the same issue. It seems like it has to do with an update of openssl used in node. As a workaround, you can run the getpassword command in a docker container with an old node version. It worked for me with node:16.