mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #407] No token provided error when using artist_top_tracks() #241
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#241
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 @AustinPoulson on GitHub (Dec 21, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/407
Sorry if this is the wrong place to post this. I keep getting a "No token provided" error when I build my app. The only function I'm using is artist_top_tracks(). On the scope page, spotify doesn't list this as a function that requires authorization. I tried getting an authorization key, but I'm having a hard time figuring it out. Does this function actually need the token, or am I doing something wrong?
@felix-hilden commented on GitHub (Dec 21, 2019):
This is still the correct place to ask until we transfer the repository! Looks like you have not provided any authentication. User tokens and client tokens are a different thing. I think some sort of token needs to be provided always, so if not a user token (the endpoint action is not associated with a specific user), then it should be the client token. In the current/old version I think it's this function that is responsible for retrieving client tokens.
@stephanebruckert commented on GitHub (Jan 1, 2020):
Yes the doc is out of date but will update it soon. For now make sure you provide a token with the correct scope:
user-top-read@felix-hilden commented on GitHub (Jan 1, 2020):
@stephanebruckert I don't think
artist_top_tracksis a user-authenticated endpoint. A client token should do fine.@stephanebruckert commented on GitHub (Jan 1, 2020):
@felix-hilden thank you, you are right, I was looking at the user's endpoint
@AustinPoulson let us know if either helps:
Or if you are looking to work without connecting your own Spotify account:
Also doc was updated, have another look https://spotipy.readthedocs.io/en/latest/