Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I'm having some problems with Chat Room 2.0 after about a day of usage.
On the client side I see
Notice: Undefined index: users in nodejs_get_content_channel_users() (line 60 of {...}/sites/all/modules/nodejs/nodejs.module).
Very similar to #1506560: users in nodejs_get_content_channel_users()...
On the server side in nodejs, with every client page refresh, I see:
cleanupSocket: checking tokenChannel chatroom_1 OZ5UZ-J3rnzuNTu4l4BU
cleanupSocket: checking tokenChannel chatroom_1 EsnImp0jurVJJUmSl4BV
cleanupSocket: found socket.id for tokenChannel chatroom_1 { token: 'ukairyG1uqbx7pF_5eZA6JOxuu7OcAlwsgUkOotgm5c',
channel: 'chatroom_1',
notifyOnDisconnect: true }
publishMessageToClient: Failed to find client wAkbEypyp0bvN-5gl3an
publishMessageToClient: Failed to find client QQ96G-L0h_BmnnOEl3a7
publishMessageToClient: Failed to find client 2AqBxdN-fabBexzcl3bH
publishMessageToClient: Failed to find client KPfES73oBMyk5cu-l34e
publishMessageToClient: Failed to find client K1j8CdHqg_ZEjGwXl34k
publishMessageToClient: Failed to find client 7KNqwYpLBVBpmzKEl34o
publishMessageToClient: Failed to find client 3cHBZ4te7LydF-7Dl4BB
publishMessageToClient: Failed to find client 3Mpmr6l2F74CuR3zl4BC
getContentTokensUsers: Invalid JSON "{"channel":"chatroom_1"}" [TypeError: Cannot read property 'uid' of undefined]
checkTokenChannelStatus: found socket for tokenChannel chatroom_1 6
The chat appears to operate normally even with these errors. If I restart the JSON server, the error goes away.
We've been seeing some odd things with the other users in the chat not displaying, could that be related?
Comments
Comment #1
TrevorBradley CreditAttribution: TrevorBradley commentedLooks like this is this bug, and rolling back to a previous version of npm express fixes the issue...
http://drupal.org/node/1537702
Comment #2
TrevorBradley CreditAttribution: TrevorBradley commentedNope, it's come back after 3 days. :( "Failed to find client"
Comment #3
TrevorBradley CreditAttribution: TrevorBradley commentedNope, it came back after 3 days. :(
I'm not entirely sure what I'm doing wrong here, as I've just moved the server to a new machine and get the exact same error. It seems to fail and start spewing out "Failed to find client" errors.