[GH-ISSUE #99] Problem running sample code #46

Closed
opened 2026-02-27 23:20:34 +03:00 by kerem · 1 comment
Owner

Originally created by @kakyoism on GitHub (Jun 11, 2016).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/99

I ran the sample code "Shows the contents of every playlist owned by a user:" from here:
http://spotipy.readthedocs.io/en/latest/#examples

and got this Terminal sequence:

$ python /Users/me/Documents/test/python/hello_spotipy.py myuseracount


            User authentication requires interaction with your
            web browser. Once you enter your credentials and
            give authorization, you will be redirected to
            a url.  Paste that url you were directed to to
            complete the authorization.


Opening https://accounts.spotify.com/authorize?redirect_uri=<some url> in your browser

Enter the URL you were redirected to: 

I've white-listed my redirect_uri, exported id/secret/redirect_uri (double-checked that all changes are in effect), and ran the code as is. But the URL opened in my browser says:

Error
Oops! Something went wrong, please try again or check out our help area.

The same happened after I removed the "remembered" Spotify credential from my browsers (Safari, Chrome).

Originally created by @kakyoism on GitHub (Jun 11, 2016). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/99 I ran the sample code "Shows the contents of every playlist owned by a user:" from here: http://spotipy.readthedocs.io/en/latest/#examples and got this Terminal sequence: ``` $ python /Users/me/Documents/test/python/hello_spotipy.py myuseracount User authentication requires interaction with your web browser. Once you enter your credentials and give authorization, you will be redirected to a url. Paste that url you were directed to to complete the authorization. Opening https://accounts.spotify.com/authorize?redirect_uri=<some url> in your browser Enter the URL you were redirected to: ``` I've white-listed my redirect_uri, exported id/secret/redirect_uri (double-checked that all changes are in effect), and ran the code as is. But the URL opened in my browser says: ``` Error Oops! Something went wrong, please try again or check out our help area. ``` The same happened after I removed the "remembered" Spotify credential from my browsers (Safari, Chrome).
kerem closed this issue 2026-02-27 23:20:34 +03:00
Author
Owner

@stephanebruckert commented on GitHub (Jan 1, 2020):

It's ok to get an error message when the browser opens. What you need to get is the URL itself, copy it and paste it into your terminal.

I'm closing as this issue is old and has been working for others. Feel free to reopen if needed. Cheers

<!-- gh-comment-id:570081687 --> @stephanebruckert commented on GitHub (Jan 1, 2020): It's ok to get an error message when the browser opens. What you need to get is the URL itself, copy it and paste it into your terminal. I'm closing as this issue is old and has been working for others. Feel free to reopen if needed. Cheers
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#46
No description provided.