deLaDude / skitty

Plug.dj bot for Coding Soundtrack Lounge
2 stars 0 forks source link

has no method 'getUpdateCode' #3

Open webdevbrian opened 10 years ago

webdevbrian commented 10 years ago

Anything else change?

  if (!key) {
    throw new Error("You must pass the authentication cookie into the PlugAPI object to connect correctly");
  }
  this.rpcHandlers = {};
  this.room = new Room();
} has no method 'getUpdateCode'
at new Bot (/Users/enterprise/Public/nodeTests/plugBot.js:12:15)
deLaDude commented 10 years ago

Grab the latest from the plugapi repo and you should be good to go: https://github.com/atomjack/plugapi/commit/81be53bf5f1832f057148b68b3c9f80ea736209f

webdevbrian commented 10 years ago

Nice man - I think that got around that ish - thanks for that.

Have you had any issues with the WebSocket.js? I think this might be a plug thing.

    node_modules/ws/lib/WebSocket.js:187
else throw new Error('not opened');
deLaDude commented 10 years ago

Hmm, I haven't run into that one with this codebase yet. First thing I would check is ip-blocking software, if you use it. I use peer blocker and sometimes it will trip me up when doing development.

webdevbrian commented 10 years ago

Definitely going to check that out. I just got this error after just trying to launch it again.

src/client.js:546
 return this.ws.send('5::/room:'+JSON.stringify(message))
                    ^
TypeError: Cannot call method 'send' of null

I think you may be correct -- it appears it can't return the room info for some weird reason.