Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Inconsistent responses on all `/me/albums` routes.

Inconsistent responses on all `/me/albums` routes.

Hello. I have been working on a Node.JS API wrapper for the Spotify Web API lately. While working on the `/me/albums` routes, I noticed an issue with them. All the /me/routes return 401 (Missing Token) errors. Even though a valid access token is being with the Authorization header. 

 

Please take a look below for an example to reproduce the issue:

 

 

 

const phin = require('phin');

phin({
	url: 'https://api.spotify.com/v1/me/albums/',
	method: 'GET',
	parse: 'json',
	headers: {
		'Content-Type': 'application/json',
		Authorization: 'Bearer REDACTED'
	}
}).then((res) => {
	console.log(res.body, res.statusCode); // https://i.imgur.com/m92CyPc.png
});

 

 

 

The above code example uses phin to make a GET request to the `/me/albums` route, which returns the saved albums of the user. 

 

As it can be seen in the screenshot in the code block, a 401 error is returned by the API, however the request seems to be valid according to the documentation.

 

This issue also persists with other /me/albums routes.

 

Please let me know if this is an issue with the API itself or something wrong is being done by me.

Reply
1 Reply

Hello...?

Suggested posts

Let's introduce ourselves!

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…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random