Hi again! You guys are probably going to quite bored with my 'issues'.
I'm trying to get the users playlists, but all I keep getting is an empty error when I run my script.
Output:
➜ spode git:(master) ✗ node src/server.js
Error:
My script looks like this:
// Skip all the require stuff
session.login(cred.login, cred.password);
session.once('login', function (err) {
if(err) this.emit('error', err);
// I'm logged in, now what?!
// Let's get a list of playlists!
var plContainer = session.getPlaylistcontainer();
plContainer.getPlaylists(function (a) {
console.log(a);
});
});
I would expect to see whatever 'a' contains in the callback.
Having followed the code path, it appears as though the error is coming from PlaylistContainer::_readyOrThrow. I'm guessing the sp_playlistcontainer isn't loaded by the time the callback triggers. Any idea why?
Thanks,
Hi again! You guys are probably going to quite bored with my 'issues'.
I'm trying to get the users playlists, but all I keep getting is an empty error when I run my script.
Output:
My script looks like this:
I would expect to see whatever 'a' contains in the callback.
Having followed the code path, it appears as though the error is coming from PlaylistContainer::_readyOrThrow. I'm guessing the sp_playlistcontainer isn't loaded by the time the callback triggers. Any idea why?
Thanks,