Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Invalid Key Length #327

Open
discopolis opened this issue Oct 9, 2016 · 7 comments
Open

Invalid Key Length #327

discopolis opened this issue Oct 9, 2016 · 7 comments

Comments

@discopolis
Copy link

discopolis commented Oct 9, 2016

Hi, I have installed AirSonos successfully and it sets up the device tunnels as it should. The speakers then appear on my iPhone but as soon as I select one and hit play it crashes and I get the following error message. I updated with the fix related to issue 320 that @Kolky provided but to no avail.

Any ideas?

error: Invalid key length
at Error (native)
at new Decipheriv (crypto.js:239:16)
at Object.Decipheriv (crypto.js:236: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:550:8)

@massive
Copy link

massive commented Oct 26, 2016

My "workaround" was to install older Node version (0.10.x) and use that instead of current LTS (6.9.x). That works in my case, but obviously is a bit cumbersome and won't work for everyone.

@Bhlowe
Copy link

Bhlowe commented Nov 26, 2016

I tried several versions of Node without success. My workaround was to use a docker image that works well. https://github.com/justintime/docker-airsonos

@JBalloonist
Copy link

@Bhlowe I'm new to using Docker. Do I need to install Node first in the container then run Airsonos?
I followed the instructions to run the container but don't see the speaker in Airplay. Thanks in advance for any help.

@Bhlowe
Copy link

Bhlowe commented Dec 1, 2016

No just run the one docker command and it should start and work. Make sure the docker container is running and didn't quit -- use "docker ps"
Also make sure your firewall isn't blocking the exposed ports.

@mattwwatson
Copy link

I have same issue macos 10.11.6, node 7.2.0, npm 3.10.9

@gnestor
Copy link

gnestor commented Dec 12, 2016

Duplicate of #338

@tagdara
Copy link

tagdara commented Dec 20, 2016

The fixes to helper.js in #316 worked for me today on this specific issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants