onetune / spotify-web-helper

🎛 Control Spotify from node.js
62 stars 11 forks source link

503 Error Using Windows 10 While Retrieving Status #37

Closed mwalden2004 closed 6 years ago

mwalden2004 commented 6 years ago

I'm getting

node:26988) UnhandledPromiseRejectionWarning: HTTPError: Response code 503 (Service Unavailable)
    at stream.catch.then.data (D:\Projects\DesktopBackground\node_modules\got\index.js:182:13)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

and my code is

const SpotifyWebHelper = require('spotify-web-helper');

const helper = SpotifyWebHelper();
helper.player.on('ready', () => {
  console.log(helper.status);
  // 'status': {
  //    'track': ...,
  //    'shuffle': ...,
  //    'playing_position': ...
  //  }

});
itotallyrock commented 6 years ago

Hello, thank you for submitting your issue. I'm unable to reproduce this issue myself, I think this might just be an issue with Spotify on your end. If you think this is an issue with this repository, more information will likely be needed: if your spotify is up to date, if you can access Spotify through your browser, or if none of those work restarting your computer/network that could be interfering. Regardless, we could use handling the promise and emitting an error instead of the letting it go uncaught.

mwalden2004 commented 6 years ago

I was trying to find what the issue was, and I have found out it's Electron not compiling correctly, Thank you, and sorry to waste your time.

mwalden2004 commented 6 years ago

Apparently I can't close the issue, can you?