mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #926] How to send someone a working authorize url? #554
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#554
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 @Andrew3212 on GitHub (Jan 4, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/926
I'm trying to send .get_authorize_url across discord so a friend can authorize. It currently allows them to sign in, but after they do, it says This site can't be reached 127.0.0.1 refused to connect.
Then if they call the current song command on the discord bot it returns my song, not theirs.
@stephanebruckert commented on GitHub (Jan 5, 2023):
If I remember correctly, it's fine to see
This site can't be reached 127.0.0.1 refused to connect. All your friend needs to do is copy the URL at that point and send it to you (that URL contains a code), so that you can enter it in your terminal when you getEnter the URL you were redirected toand complete the authentication.@Andrew3212 commented on GitHub (Jan 8, 2023):
Ok now I'm calling this
sp_oauth.get_authorize_url()and then in another function I send the urlcode = ctx.options.URL token = sp_oauth.get_access_token(code=code, as_dict=False, check_cache=False)But then it says this:
spotipy.oauth2.SpotifyOauthError: error: invalid_grant, error_description: Invalid authorization code
@Andrew3212 commented on GitHub (Jan 8, 2023):
Just had to parse it! The bot is fully complete now :D