Skip to content

Error: Can't find variable: session #6

@frey1esm

Description

@frey1esm

Trying to run spotify.getPlaylists via:

spotify.getPlaylists(session.canonicalUsername, session, function(error,result) { if(error) alert("error: " + error); var playlists = result; });

In my code, the 'session' object does exist and is a proper Spotify session object.

The error is being thrown on line 57 of request.js:

options.uri = options.uri.replace('$U', session.canonicalUsername);

So, is somehow session not getting passed to the plugin???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions