airsonos icon indicating copy to clipboard operation
airsonos copied to clipboard

Crashes when selecting device from system preferenced

Open alexwileyy opened this issue 8 years ago • 2 comments

Using Node V6.3.0

Crashing when selecting the Sonos speaker from system preferences on mac with the following error: `crypto.js:238 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^

Error: Invalid key length at Error (native) at new Decipheriv (crypto.js:238:16) at Object.Decipheriv (crypto.js:235:12) at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25) at RtpServer. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtp.js:32:23) at emitTwo (events.js:106:13) at Socket.emit (events.js:191:7) at UDP.onMessage (dgram.js:540:8)`

alexwileyy avatar Jan 16 '17 20:01 alexwileyy

Same issue here.

`crypto.js:241 this._handle.initiv(cipher, toBuf(key), toBuf(iv)); ^

Error: Invalid key length at new Decipheriv (crypto.js:241:16) at Object.Decipheriv (crypto.js:238:12) at Object.decryptAudioData (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js:141:25) at RtpServer. (/usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/rtp.js:32:23) at emitTwo (events.js:106:13) at Socket.emit (events.js:191:7) at UDP.onMessage [as onmessage] (dgram.js:547:8)`

Edit: Same thing happens when I try to Airplay from my phone.

shanehull avatar Jan 17 '17 10:01 shanehull

@alexwileyy the following fixed my issue: https://github.com/stephen/airsonos/issues/316#issuecomment-255663049

shanehull avatar Jan 17 '17 11:01 shanehull