question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spotifyApi.addTracksToPlaylist 403 issue

See original GitHub issue

When I call spotifyApi.addTracksToPlaylist("78q0ixigszbxoodohszxk5c99","6KU9Lo2ZyB7AbXCK7qt8rk",["spotify:track:6rPO02ozF3bM7NnOV4h6s2"])

I got Something went wrong! { [WebapiError: Forbidden] name: 'WebapiError', message: 'Forbidden', statusCode: 403 }

“78q0ixigszbxoodohszxk5c99” is my user id and “6KU9Lo2ZyB7AbXCK7qt8rk” is my playlist id. Could someone please help me?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
onhernandescommented, Dec 25, 2017

Did you check your access token’ scopes? Maybe there’s something missing. Mine are ["playlist-read-private", "playlist-modify-private", "playlist-modify-public"]

1reaction
MrAmericanMikecommented, Oct 18, 2018

Maybe this was related to an old version of the API, but on the request you don’t need a username or user ID, just a playlist and a list of song/songs to add.

Read more comments on GitHub >

github_iconTop Results From Across the Web

403 Forbidden error when trying to add song to another ...
This is a limitation of the API. Only playlist owners are able to modify collaborative playlists through the API.
Read more >
Some API endpoints randomly return error 403
Since 2021-06-28 14:10 UTC I've started to receive random HTTP 403 errors for the following endpoints: /v1/me; /v1/me/player/currently- ...
Read more >
@cameronriu/spotify-web-api-node - npm
Get Elvis' albums spotifyApi. ... function(err) { //if the user making the request is non-premium, a 403 FORBIDDEN response code will be ...
Read more >
Error with the Spotify API and IDK why : r/reactjs - Reddit
My unique problem is with getting the user data profile. In the console says that is a 403 error but I don't understand...
Read more >
Jammming project : Spotify API errors 403 & 404 leading to a ...
If I click again on the SaveToSpotify button (after having renamed the playlist… or not), I have these error displayed in the browser:....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found