spotify / web-api

This issue tracker is no longer used. Join us in the Spotify for Developers forum for support with the Spotify Web API ➡️ https://community.spotify.com/t5/Spotify-for-Developers/bd-p/Spotify_Developer
983 stars 79 forks source link

User Top Tracks returning 301 Moved Permanently #1548

Open BrianHillis opened 4 years ago

BrianHillis commented 4 years ago

Issue found on April 22, 2020

Endpoint(s):

Scope(s):

user-top-read

Steps to reproduce:

ajaxrequest({ url: 'https://api.spotify.com/v1/me/top/artists', type: 'GET', dataType: 'application-json', contentType: 'application-json', headers: { 'Authorization' : 'Bearer ' + accessToken } }, function(err,res,body){ console.log(body); });

Expected behaviour:

Expected to get a list of users top tracks or artists

Actual behaviour:

301 Moved Permanently

Notes:

Not sure where this endpoint is located now. Documentation still lists v1/me/top/tracks or v1/me/top/artists as correct endpoints.

BrianHillis commented 4 years ago

The request is completed successfully if an ajax request is made through jquery, but when I try to use the node package module for ajax-request, it fails. Same parameters are passed to both.