qrpike / spotify-playlist-downloader

Download an entire spotify playlist ( FROM SPOTIFY at 160kpbs ) to your local machine.
287 stars 111 forks source link

Error: Illegal value #6

Open invmatt opened 9 years ago

invmatt commented 9 years ago

Gets the playlist data then produces this error:

Error: Illegal value for Message.Field .spotify.metadata.proto.Restriction.catal ogue: 4 (not a valid enum value) at [object Object].ProtoBuf.Reflect.Field.verifyValue (C:\Users\App Data\Roaming\npm\node_modules\spotify-playlist-downloader\node_modules\spotify-w eb\node_modules\protobufjs\ProtoBuf.js:2321:27) at [object Object].Message.add (C:\Users\AppData\Roaming\npm\node_m odules\spotify-playlist-downloader\node_modules\spotify-web\node_modules\protobu fjs\ProtoBuf.js:1693:53) at [object Object].ProtoBuf.Reflect.Message.decode (C:\Users\AppDat a\Roaming\npm\node_modules\spotify-playlist-downloader\node_modules\spotify-web\ node_modules\protobufjs\ProtoBuf.js:2137:29) at [object Object].ProtoBuf.Reflect.Field.decode (C:\Users\AppData\ Roaming\npm\node_modules\spotify-playlist-downloader\node_modules\spotify-web\no de_modules\protobufjs\ProtoBuf.js:2594:46) at [object Object].ProtoBuf.Reflect.Message.decode (C:\Users\AppDat a\Roaming\npm\node_modules\spotify-playlist-downloader\node_modules\spotify-web\ node_modules\protobufjs\ProtoBuf.js:2137:51) at Message.decode (C:\Users\AppData\Roaming\npm\node_modules\spotif y-playlist-downloader\node_modules\spotify-web\node_modules\protobufjs\ProtoBuf. js:1982:41) at Function.protobufjs_parse_wrapper as parse at Spotify._parse (C:\Users\AppData\Roaming\npm\node_modules\spotif y-playlist-downloader\node_modules\spotify-web\lib\spotify.js:1288:20) at parseData (C:\Users\AppData\Roaming\npm\node_modules\spotify-pla ylist-downloader\node_modules\spotify-web\lib\spotify.js:592:18) at Spotify. (C:\Users\AppData\Roaming\npm\node_modules\s potify-playlist-downloader\node_modules\spotify-web\lib\spotify.js:652:16) at fn (C:\Users\AppData\Roaming\npm\node_modules\spotify-playlist-d ownloader\node_modules\spotify-web\lib\spotify.js:396:10) at Spotify._onmessage (C:\Users\AppData\Roaming\npm\node_modules\sp otify-playlist-downloader\node_modules\spotify-web\lib\spotify.js:412:5) at WebSocket.emit (events.js:98:17) at Receiver.self._receiver.ontext (C:\Users\AppData\Roaming\npm\nod e_modules\spotify-playlist-downloader\node_modules\spotify-web\node_modules\ws\l ib\WebSocket.js:682:10) at Receiver.opcodes.1.finish (C:\Users\AppData\Roaming\npm\node_mod ules\spotify-playlist-downloader\node_modules\spotify-web\node_modules\ws\lib\Re ceiver.js:391:14) at Receiver.expectHandler (C:\Users\AppData\Roaming\npm\node_module s\spotify-playlist-downloader\node_modules\spotify-web\node_modules\ws\lib\Recei ver.js:378:31) at Receiver.add (C:\Users\AppData\Roaming\npm\node_modules\spotify- playlist-downloader\node_modules\spotify-web\nodemodules\ws\lib\Receiver.js:87: 24) at CleartextStream.firstHandler (C:\Users\AppData\Roaming\npm\node modules\spotify-playlist-downloader\node_modules\spotify-web\node_modules\ws\lib \WebSocket.js:663:22) at CleartextStream.emit (events.js:95:17) at CleartextStream. (_streamreadable.js:764:14) at CleartextStream.emit (events.js:92:17) at emitReadable (_stream_readable.js:426:10) at _stream_readable.js:419:7 at process._tickDomainCallback (node.js:463:13)

qrpike commented 9 years ago

I don't have a windows machine to test on, please let me know if you solve the issue.

Thanks,

jeremy89632 commented 9 years ago

Same issue on the mac too, here goes:

bernhardmostrey commented 9 years ago

same issue!

Downloader App Started..

rbxcbd commented 9 years ago

Same thing happens to mine, tried downgrading node via nvm to 0.10.36 but still no avail. Help?

Now it says illegal access on node 0.11.0.

CaptainShadows commented 9 years ago

Same issue with node 0.12.4 on Windows 8.1

ashkanalinejad commented 9 years ago

I have the same issue on my mac. but I think it's a consequence of not having a premium account

tristankirkpatrick commented 9 years ago

Yes, that could be it - I have premium. On Fri, 19 Jun 2015 at 14:11 ashkanalinejad notifications@github.com wrote:

I have the same issue on my mac. but I think it's a consequence of not having a premium account

— Reply to this email directly or view it on GitHub https://github.com/qrpike/spotify-playlist-downloader/issues/6#issuecomment-113510290 .

roshanr10 commented 9 years ago

@tristan1990 it only works on node v10. Have you been able to solve the issue?

reneweteling commented 9 years ago

Hey there,

Nice app btw. only im receiving an error when trying to download a link.

Downloader App Started..
 - Getting Playlist Data
 - Got Playlist: OLD SCHOOL HIP HOP
 - Processing 100 Tracks
/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:1987
                            throw(e);
                                  ^
Error: Illegal value for Message.Field .spotify.metadata.proto.Restriction.catalogue: 4 (not a valid enum value)
  at [object Object].ProtoBuf.Reflect.Field.verifyValue (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:2321:27)
  at [object Object].Message.add (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:1693:53)
  at [object Object].ProtoBuf.Reflect.Message.decode (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:2137:29)
  at [object Object].ProtoBuf.Reflect.Field.decode (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:2594:46)
  at [object Object].ProtoBuf.Reflect.Message.decode (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:2137:51)
  at Message.decode (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/protobufjs/ProtoBuf.js:1982:41)
  at Function.protobufjs_parse_wrapper (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/schemas.js:98:39)
  at Spotify._parse (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:1288:20)
  at parseData (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:592:18)
  at Spotify.<anonymous> (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:652:16)
  at fn (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:396:10)
  at Spotify._onmessage (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:412:5)
  at WebSocket.emit (events.js:110:17)
  at Receiver.self._receiver.ontext (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/ws/lib/WebSocket.js:682:10)
  at Receiver.opcodes.1.finish (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:391:14)
  at Receiver.expectHandler (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:378:31)
  at Receiver.add (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/ws/lib/Receiver.js:87:24)
  at TLSSocket.firstHandler (/usr/local/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/node_modules/ws/lib/WebSocket.js:663:22)
  at TLSSocket.emit (events.js:107:17)
  at readableAddChunk (_stream_readable.js:163:16)
  at TLSSocket.Readable.push (_stream_readable.js:126:10)
  at TCP.onread (net.js:538:20)

Do you have any clueue? Thanks!

Im running on osx 10.10.3 btw with node v0.12.2

reneweteling commented 9 years ago

Ok solved it, you nee node v.0.10.0 just install https://www.npmjs.com/package/n install v.0.10.0 and go :)

jperezr21 commented 9 years ago

Same error here. Changed to node v0.10.0 but it's still happening. Any other solution? Thanks!

reneweteling commented 9 years ago

@jperezr21 what os are you using, and what does node say when you do node -v?

jperezr21 commented 9 years ago

@reneweteling I'm on windows 7 and using nodist for managing node versions. I downloaded v0.10.0 and when I type node -v it says v0.10.0. Still, I thought it might be using another version, so I uninstalled the others, but the error is still there.

reneweteling commented 9 years ago

@jperezr21 hmmmm..... wel windows is an issue by default... me recommendation is to boot up a virtual box, install ubuntu and try it there in the terminal. Its a bit of a way around.... but thats probably your best bet. Good luck!

gtothesquare commented 9 years ago

@jperezr21 try uninstalling everything related to node. You need to install the downloader with node 0.10.x if not your protobufjs will not work properly

ozgurduygu commented 8 years ago

I struggled with the same issue and here's the solution that I came with: uninstall node.js completely install 0.10.36 http://nodejs.org/dist/v0.10.36 make sure you have installed brew and ffmpeg

sgarwang commented 8 years ago

I got the same error, got work around by using 0.10.36~ Thanks!

Downloader App Started..