rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.37k stars 493 forks source link

Server crash after twitter login #27

Closed ping86 closed 12 years ago

ping86 commented 12 years ago

Url: domain . com:3000/rooms/list

TypeError: /var/www/chat/views/themes/default/room_list.jade:11
    9|      p
    10|             ul#available_rooms
  > 11|             each room,key in rooms
    12|                 li
    13|                     a(href='/rooms/'+room)= key
    14| 

Cannot read property 'length' of null
    at eval at <anonymous> (/var/www/chat/node_modules/jade/lib/jade.js:160:8)
    at eval at <anonymous> (/var/www/chat/node_modules/jade/lib/jade.js:160:8)
    at Object.<anonymous> (/var/www/chat/node_modules/jade/lib/jade.js:165:12)
    at ServerResponse._render (/var/www/chat/node_modules/express/lib/view.js:422:21)
    at ServerResponse.render (/var/www/chat/node_modules/express/lib/view.js:315:17)
    at /var/www/chat/balloons.js:54:9
    at try_callback (/var/www/chat/node_modules/redis/index.js:484:9)
    at RedisClient.return_reply (/var/www/chat/node_modules/redis/index.js:555:13)
    at HiredisReplyParser.<anonymous> (/var/www/chat/node_modules/redis/index.js:256:14)
    at HiredisReplyParser.emit (events.js:67:17)

Thanks.

impronunciable commented 12 years ago

Are you running redis?

ping86 commented 12 years ago

Yes, redis and socket.io is running

impronunciable commented 12 years ago

You were right. Just fixed. If you make a pull it's ready.

impronunciable commented 12 years ago

Thank you for the bug report :)