Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotify API Authorisation? #30

Open
jimeney opened this issue Mar 30, 2016 · 3 comments
Open

Spotify API Authorisation? #30

jimeney opened this issue Mar 30, 2016 · 3 comments

Comments

@jimeney
Copy link

jimeney commented Mar 30, 2016

Does the IIS server need to be hosted publicly (for Spotify to authenticate the web service)? I have followed the prerequisite checks, however any search yields no results. In the logs, I can see the following:
Mongo is running
IIS has been set up appropriately
The PlayMe application has been started 'as administrator'

Log exerpt:
Creating Spotify Session
Logging into Spotify with username 'xxx'
Dequeuing next track
Asking AutoPlay for next track

Then
...Interfaces.ICallbackClient|QueueChanged failed with exception The remote server returned an unexpected response: (405) Method not Allowed

This looks as though it might be related to the App not being authorised against my spotify account?

@fordprefect480
Copy link
Contributor

Hi! Your log indicates that it is logging into Spotify fine so that's something. Can you step through and find out more about which call it was making and the URL at the time it failed? From the log it's hard to tell whether it is failing to request a track from Spotify or if it can't find Mongo.

@jimeney
Copy link
Author

jimeney commented Mar 31, 2016

Thank you for coming back to me. I'll drop everything into Visual Studio and see what I can find, however...
In the console application for the server, I can see the search query being processed
In the Mongo console session, I can see the connection being accepted and ended around 200 msec later. Does that look normal?
I can see a PlayMe data and log file in the mongo data folder too.

@fordprefect480
Copy link
Contributor

Looking into it further, if it's the ICallbackClient failing when QueueChanged that means the server has finished a track and moving to the next one. Then the server tries to tell the website to refresh the queue elements on the page to reflect the new queue, and it's this callback that is failing.

Check that the config settings for the SpotifyCallbackService are correct in Server/app.config. Also check that your permissions for the Site and its /Services dir are set as per the setup instructions. A StackOverflow post also mentioned a few things worth trying, including enabling some windows features.

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

No branches or pull requests

2 participants