https://api.spotify.com/v1/me errors aren't handled by nodejs SDK properly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Premium
My Question or Issue
I've been using the nodejs Spotify SDK to interact with the Spotify Web API. I was successfully getting access tokens for a user that granted my Spotify app access, but then when I ran .getMe() it returned a 403.
The error message could not be unpacked so I had no idea why the access tokens I just got weren't working. Scopes were all fine.
I finally ran a curl request to https://api.spotify.com/v1/me and saw a real error - I didn't add the user to the Spotify App dashboard. Once I added the user to the Spotify Dashboard it worked.
Two issues here;
1- why am I getting an access token for a user if I'm not able to act on those tokens? Seems like a mismatch. I should probably not get a token to begin with if the user isn't added to the spotify app
2- most importantly, the error message should probably be parsed and returned in the Spotify JS sdk so I can debug these issues more easily.
- Labels:
-
Possible Bug

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page