I am writing an app using spotify web api for personal use. It is a node.js application. I call the accounts.spotify.com/authorize endpoint and get redirected to the spotify login, but I am unable to log in using either Facebook or spotify username/password.
When I try to log in via Facebook, I get this error: "App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions." When I try to log in with the spotify username/password, I get this error: "Oops! Something went wrong, please try again or check out our help area"
Here is the code. It doesn't do much at this point other than redirect to the spotify login. I redacted the client_id and redirect URL. The redirect URL is accessible if I enter it directly in the browser. I believe that since I am getting the spotify login page, I am in the right ballpark, but maybe missed something in the app setup or the code.
Can someone tell me how to get past this error? Thanks.
var request = require('request');
function SpotifyLogin(req,res)
{
var options =
{
url: 'http://accounts.spotify.com/authorize/?client_id=<redacted>&response_type=code&redirect_uri=<redacted>&scope=user-read-private&state=34fFs29kd09&show_dialog=true',
followAllRedirects: true,
followRedirect: true
};
request(options, function(error, response, body)
{
res.send(body);
console.log(body);
console.log(response.toJSON());
}).on('error', function(e) {
res.setHeader('Content-Type', 'text/html');
res.send("<html><body>"+ e.message +"</body></html>");
console.log("Got error: " + e.message);
});
}
<redacted>- SerCrAsH/authorizeURL and authorize your application by simply opening it in a browser? If an error occur after you've logged in, an error description should be displayed in the Developer Console. (Check Network and/or Console.) - Michael Thelin