-
Notifications
You must be signed in to change notification settings - Fork 255
Invalid key length error #316
Comments
Have you attempted to stream with an apple product running IOS 9? If so, have you reproduced your issue? |
+1, on iOS 9. Tested using node 4.5 and 6.4, on Arch Linux. The exception is triggered as soon as I hit play on my iDevice.
|
Same issue here on macOS Sierra beta: Error: Invalid key length |
Yes! that solves the issue |
I'm a bit new to this and have no idea how to apply this fix...can anyone help? |
when ths fix will be available on airsonos ? |
I think the issue is that the pull request above has not yet been merged into nodetunes... |
I am seeing a similar issue: Error: Invalid key length |
And I have updated the helper.js folder to reflect the #302 fix but still not working |
+1 |
1 similar comment
+1 |
The fix works for me. Edit the file, |
Worked for me:
replacing
with
|
Thanks @isidore this worked for me! |
Worked for me too! |
I'm not a proficient programmer at all but could probably figure it out with a little help. Would appreciate if someone could advise how I can edit /usr/local/lib/node_modules/airsonos/node_modules/nodetunes/lib/helper.js and replace var decipher = crypto.createDecipheriv('aes-128-cbc', audioAesKey, audioAesIv); with var audioAesKeyBuffer = new Buffer(audioAesKey, 'binary'); Thank you very much |
+1 |
@psieyes Open terminal. Type Type Type Copy the two new lines:
Back in the terminal, type
Hit Type |
Works like a charm. Thanks guys |
perfect, thx a lot! |
Only worked with extra var audioAesKeyBuffer = new Buffer(audioAesKey, 'binary');
var decipher = crypto.createDecipheriv('aes-128-cbc', audioAesKeyBuffer, audioAesIv);
decipher.setAutoPadding(false); |
Had the same issue, and it worked with var audioAesKeyBuffer = new Buffer(audioAesKey, 'binary');
var decipher = crypto.createDecipheriv('aes-128-cbc', audioAesKeyBuffer, audioAesIv);
decipher.setAutoPadding(false); |
Me too, experiencing this issue.
This error is thrown as soon as I select the device in Preferences, Audio Output. MacOs Sierra 10.12.3 |
Same as @meglio on macOS Sierra 10.12.6 |
Hello... mostly worked but run into this error when I try to stream from my phone over aiplay. Running iOS 10 beta and OSX El Capitain 10.11.6. Any thoughts?
Error: Invalid key length
at Error (native)
at new Decipheriv (crypto.js:232:16)
at Object.Decipheriv (crypto.js:229: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)
The text was updated successfully, but these errors were encountered: