Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
Plan
Free
Country
Ukraine
Device
MacBookPro Retina, on Chrome
Operating System
(iOS )
My Question or Issue:
Hi, guys! I'm a developer building a non-commercial ReactJs app to showcase my skills of working with APIs and AJAX requests.
Here's the problem I encountered:
One of my functions make a call to
GET https://api.spotify.com/v1/users/{user_id}/playlists
in order to get the list of playlists, a user has in Spotify.
While the second call to the same endpoint returns the correct list of playlists, the first call always returns the same JSON consisting of 2 playlists, which aren't actually in the user's library (I checked this bug with 2 accounts currently and had the same outcome every time). Here is the JSON I get :
So, I've got nothing agains nirvana or keeping Calm, but I can't keep calm while my app is not working correctly 😃
Please help me out. Thanks in advance!
PS the function is:
Solved! Go to Solution.
Welcome to the forum, @Siriakivska. Have you checked that the {user_id} is correct when your app calls https://api.spotify.com/v1/users/{user_id}/playlists?
Welcome to the forum, @Siriakivska. Have you checked that the {user_id} is correct when your app calls https://api.spotify.com/v1/users/{user_id}/playlists?
Hi, spotifyjosh,
Thanks a lot
that may seem an easy one, and I was sure I checked it like 10 times before .
however when I double-checked again it turned out you were right !!
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…