samcreate / Apollo-Player

A Mopidy fronted community driven playlist. Driven by Node.js, Backbone.js, and Require.js
87 stars 16 forks source link

Can't search tracks with Apollo #10

Open mhlz opened 10 years ago

mhlz commented 10 years ago

I just installed Apollo and I can login with Twitter just fine. Mopidy also works completely fine with another frontend (musicbox in this case).

When using Apollo I can't search for tracks at all. The logs mention this:

TypeError: Cannot call method 'search' of undefined
    at Player.search (/Users/mischa/mopidy/Apollo-Player/controllers/player.js:154:24)
    at callbacks (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:164:37)
    at param (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:138:11)
    at param (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:135:11)
    at pass (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:145:5)
    at Router._dispatch (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:173:5)
    at Object.router (/Users/mischa/mopidy/Apollo-Player/node_modules/express/lib/router/index.js:33:10)
    at next (/Users/mischa/mopidy/Apollo-Player/node_modules/express/node_modules/connect/lib/proto.js:193:15)
    at SessionStrategy.strategy.pass (/Users/mischa/mopidy/Apollo-Player/node_modules/passport/lib/middleware/authenticate.js:318:9)
    at /Users/mischa/mopidy/Apollo-Player/node_modules/passport/lib/strategies/session.js:61:12
GET /api/player/search/test 500 25ms

Any help to solve this is greatly appreciated! ^.^ Apollo looks great!

I'm running on Mac OS with node installed by homebrew in case that's relevant. I can prodive more information if needed.

danReynolds commented 10 years ago

+1

danReynolds commented 10 years ago

nevermind haha you need to run mopidy first. Thought it did that for you.