mintopia / musicparty

Collaborative Music Party Jukebox
MIT License
11 stars 6 forks source link

Spotify URI #21

Closed bi0hazard1980uk closed 7 months ago

bi0hazard1980uk commented 8 months ago

Cant get Spotify uri to work

Keep getting INVALID_CLIENT: Invalid redirect URI

Added the below to my .env

added the uri as directed as below.

Create two new apps from spotify.

You will need to set the redirect uri to ${PROTOCOL}${FQDN}/auth/spotify/search/redirect when you create them

SPOTIFY_CLIENT_ID=(Hidden) SPOTIFY_CLIENT_SECRET=(Hidden) SPOTIFY_SEARCH_CLIENT_ID=(Hidden) SPOTIFY_SEARCH_CLIENT_SECRET=(Hidden) SPOTIFY_SEARCH_REDIRECT_URI=${APP_URL}/auth/spotify/search/redirect

UI required for this, available in debug output, will fall back to SPOTIFY_CLIENT_ID if not set

SPOTIFY_SEARCH_REFRESH_TOKEN=

mintopia commented 8 months ago

Hi, the readme will be incorrect at the moment as I've rewritten the develop branch of musicparty. I'll update the README this weekend. It's all much easier now.

mintopia commented 8 months ago

If you're using the develop branch (you should - it's much improved and better), as a quick summary - if you do the setup command so you can login, you can then go to settings and it'll tell you the URLs to use for it.

bi0hazard1980uk commented 7 months ago

Thanks for the updated instructions, I muddled my way through and got the site up and linked to Discord and Spotify, Now I am running into an issue where when I have linked to spotify I click the create party and I get an Error 500 Server error.

I had to change the .env as I am still working my way round Caddy so I am connecting via http rather than https. DUnno if this maybe the cause but any help would be appreciated.

URL http://domain.ddns.net/parties/create leads to error 500

services: nginx: image: ghcr.io/mintopia/musicparty-nginx:develop env_file: .env.nginx restart: unless-stopped depends_on:

mintopia commented 7 months ago

Thanks for reporting this. There was an issue with the scopes we were requesting in Spotify authentication - we needed more scopes.

It now requests all the required ones for Party control and should now work.

Make sure your Spotify app has the the API and Web SDK options checked as well.

mintopia commented 7 months ago

Resolved - needed more scopes.