C2_W2_Assignment Spotify Redirect URL and get_token failure

Two off things in this assignment. Need help resolving this to move forward in the assignment.

  1. Create a Spotify App
  • The redirect URls details do not work on the spotify developer site.
  1. Get Token
  • The get_token script is producing an error message.
<class 'requests.models.Response'>
Error: 400 Client Error: Bad Request for url: https://accounts.spotify.com/api/token
{}
  • For the redirect URI, you need to use 127.0.0.1:3000 not localhost:3000
  • For the Get token, you need to open the file src/env, fill it with your spotify client informations (Client ID and Client Secret), then rerun the cell.

Thanks! Redirect URL https://localhost:3000 is not accepted anymore in the Spotify app creation form (as of April 25, 2025), so I used http://127.0.0.1:3000