qrpike / spotify-playlist-downloader

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

Error: Cannot read properties of undefined (reading 'csrftoken') #51

Open DerZyklop opened 5 months ago

DerZyklop commented 5 months ago

I tried it like

spotify-playlist-downloader -u MyUserName -p MyPassword --playlist https://open.spotify.com/playlist/ThePlaylistIdIWantToDownload

But it gave me:

(node:167) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
/Users/nils/.nvm/versions/node/v20.12.2/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:256
  debug('login CSRF token: %j, tracking ID: %j', args.csrftoken, args.trackingId);
                                                      ^

TypeError: Cannot read properties of undefined (reading 'csrftoken')
    at Spotify._onsecret (/Users/nils/.nvm/versions/node/v20.12.2/lib/node_modules/spotify-playlist-downloader/node_modules/spotify-web/lib/spotify.js:256:55)
    (…)
Node.js v20.12.2
qrpike commented 5 months ago

This has not been maintained, It's very likely that it no longer works.