ewenme / geniusr

work with data & lyrics from Genius
https://ewenme.github.io/geniusr/
Other
50 stars 12 forks source link

401 Unauthorized error when trying to get song lyrics #23

Open dakinidw opened 1 month ago

dakinidw commented 1 month ago

I've downloaded the latest version of the package to this day, created a user and registered a new app on the developers page for Genius. I have a client ID, password and access token. However, after loading the library, calling genius_token(T) and inputing my access token, whenever I try to pull some song lyrics I get an error saying "Error in get_song(song_id = 3039923) : Unauthorized (HTTP 401)."

I tried setting the API token directly with Sys.setenv(GENIUS_API_TOKEN = mytoken) or including the argument access_token = genius_token() in all my get requests, to no avail. I'm not really sure what to do from here within the app since there's no scopes option to add in the genius_token command. Thanks for all the help and hope this is useful to someone since I haven't found anyone with the same issue (some dude reported it and then claimed it solved spontaneously so no luck getting info there)

WilliamCipolli commented 4 weeks ago

I'm having the same issue.