brandtabbott / spotify-server

[Defunct] Spotify server and HTML5 client for use on the Xbox One
http://ecfio.co/spotify-server
MIT License
9 stars 3 forks source link

[Windows] Error playing saved Playlists #2

Open infamousjoeg opened 10 years ago

infamousjoeg commented 10 years ago

I can use the search function to search for an artist/song and it will play fine. However, trying to select a saved playlist just displays the loading screen forever. Spotify-Server.js in Node gives the following error:

Connecting to Spotify for playlist: spotify:user:InfamousJoeG:playlist:4DQZZcjLf MmyuXqAEwxB44 Error: Client Error: Bad Request (400) at Spotify. (C:\Users\Joe\node_modules\spotify-server\node_module s\spotify-web\lib\spotify.js:638:17) at fn (C:\Users\Joe\node_modules\spotify-server\node_modules\spotify-web\lib \spotify.js:396:10) at Spotify._onmessage (C:\Users\Joe\node_modules\spotify-server\node_modules \spotify-web\lib\spotify.js:412:5) at WebSocket.EventEmitter.emit (events.js:98:17) at Receiver.self._receiver.ontext (C:\Users\Joe\node_modules\spotify-server\ node_modules\spotify-web\node_modules\ws\lib\WebSocket.js:697:10) at Receiver.opcodes.1.finish (C:\Users\Joe\nodemodules\spotify-server\node modules\spotify-web\node_modules\ws\lib\Receiver.js:397:14) at Receiver.expectHandler (C:\Users\Joe\node_modules\spotify-server\node_mod ules\spotify-web\node_modules\ws\lib\Receiver.js:384:31) at Receiver.add (C:\Users\Joe\node_modules\spotify-server\node_modules\spoti fy-web\node_modules\ws\lib\Receiver.js:93:24) at CleartextStream.firstHandler (C:\Users\Joe\node_modules\spotify-server\no de_modules\spotify-web\node_modules\ws\lib\WebSocket.js:678:22) at CleartextStream.EventEmitter.emit (events.js:95:17) Node trying not to exit...

brandtabbott commented 10 years ago

I have an idea why it's breaking, but I'm not 100% sure. Can you try setting a Windows environment variable DEBUG='spotify-web' via the command prompt and paste the log from that?

I'm guessing there are items in the playlist that aren't normal 'track' items to Spotify and I just need to filter those out, but the logs from the spotify-web module will confirm or deny that assumption.

infamousjoeg commented 10 years ago

I set the Windows environment variable (SET DEBUG='spotify-web') from command prompt and double checked and it's there. I re-tested with the same outcome, but I'm not quite sure where to get the log file you need from.

On Sat, May 3, 2014 at 1:28 PM, Brandt Abbott notifications@github.comwrote:

I have an idea why it's breaking, but I'm not 100% sure. Can you try setting a Windows environment variable DEBUG='spotify-web' via the command prompt and paste the log from that?

I'm guessing there are items in the playlist that aren't normal 'track' items to Spotify and I just need to filter those out, but the logs from the spotify-web module will confirm or deny that assumption.

— Reply to this email directly or view it on GitHubhttps://github.com/brandtabbott/spotify-server/issues/2#issuecomment-42111112 .

brandtabbott commented 10 years ago

Sore about that, by log, I meant the console output which should be a lot more granular once debugging is turned on.