
It works fine when I change the URI back to local host.Can’t uninstall Spotify from Windows 10 because it won’t let you do that? How to remove Spotify when the Control Panel & Add/Remove Programs doesn’t work? Is there a spotify removal tool? Spotify is one of the most popular music streaming services with millions of monthly active users across 58 countries. It’s free to listen to Spotify and there is not a super hard sell to upgrade, so many people, especially the young teenagers love Spotify. Spotify is a very stable piece of software, but on occasion, it can get grumpy and bring up some unexpected error codes that stop you from using it properly. I tried creating a new ec2 instance and making a new spotify app with new id and secrets but nothing seems to be working.

Scope = "user-library-read user-top-read") Token_info = sp_oauth.refresh_access_token(token_info) Token_info = session.get(TOKEN_INFO, None) Return "".join(tracks) + "" + "Average tempo: " + str(avg_tempo) + "" + "Most common key: " + most_common_key_letter + "" + "Least common key: " + least_common_key_letter + "" + "Slowest track: " + slowest_track + "" + "Fastest track: " + fastest_track Tracks.append(track + " - " + track + " (" + key_letter + ") " + "tempo: " + str(track_info)) Slowest_track = min(track_tempo_map, key=track_tempo_map.get)įastest_track = max(track_tempo_map, key=track_tempo_map.get) Least_common_key_num = Counter(keys).most_common() Most_common_key_num = Counter(keys).most_common(1) Results = sp.current_user_top_tracks(limit=50, offset=i*50, time_range='medium_term') Sp = spotipy.Spotify(auth=token_info)įor i in range(0, 5): # 5 requests to get 250 songs (50 songs per request) Return redirect(url_for('getTracks', _external=True))

Token_info = sp_oauth.get_access_token(code) I checked the spotify developer tool page and everything seems to be matching (client secret, client id, and redirect uri) but it does not work.Ĭode: `from flask import Flask, request, url_for, session, redirectĪpp.config = 'Thran Cookie' When I try to use the public ip provided by AWS ec2 to redirect from the spotify authorization, it displays INVALID_CLIENT: Invalid redirect URI. I'm using ubuntu with gunicorn and nginx. So I am using the EC2 instance of AWS to try to host my webpage for my spotify application.
