mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #724] Error when trying to delete song from playlist using SpotifyOAuth #433
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#433
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @flancast90 on GitHub (Aug 31, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/724
Hello, when trying to run the code below, I encounter an error:
I am authenticating as suggested in the documentation as follows:
The error is as follows:
Can someone explain what I am doing wrong?
@Peter-Schorn commented on GitHub (Aug 31, 2021):
When you run this script, it should ask you to open a URL in your browser. When you open this URL, you should log in and then click the "agree" button. You should then be redirected to a URL that begins with your redirect URI (
https://finnsoftware.net). Then, you should paste this URL back into the program in order to complete the authorization process. Is this what you're doing?@flancast90 commented on GitHub (Aug 31, 2021):
Yes, @Peter-Schorn. I'm changing the redirect_url now, because I think javascript
window.open()calls from the website are impacting the spotify redirect_url.From what I read in the docs, it seems that you must include this redirect. Is there a way to bypass that redirect/url entry?
@Peter-Schorn commented on GitHub (Aug 31, 2021):
No, you cannot bypass this. You can read about the authorization process in detail here.
Are you running this as a local command-line script? If so, consider changing the redirect URI to
http://localhost:8080.@flancast90 commented on GitHub (Aug 31, 2021):
Thanks for your help, @Peter-Schorn, the issue was window.open() calls in the website js. As soon as I changed the authentication page to about:blank, it started working.