TypeError: Cannot read property 'sockets' of undefined with nodejs

Created on 19 June 2016, about 8 years ago
Updated 1 August 2023, 11 months ago

I can start node app.js config.file just fine
but it soon ends with this error:

[2016/06/19 03:02:48] authenticateClientCallback: Valid login for uid 1
[2016/06/19 03:02:48] sendPresenceChangeNotification: onlineUsers
{ '1': [] }
Auth - 1
/usr/lib/node_modules/drupal-node.js/lib/client-manager.js:806
if (this.sockets[sessionId]) {
^

TypeError: Cannot read property 'sockets' of undefined
at ClientManager.publishMessageToClient (/usr/lib/node_modules/drupal-node.js/lib/client-manager.js:806:11)
at process. (/usr/lib/node_modules/drupal-node.js/extensions/drupalchat_nodejs.server.extension.js:26:7)
at emitTwo (events.js:87:13)
at process.emit (events.js:172:7)
at ClientManager.setupClientConnection (/usr/lib/node_modules/drupal-node.js/lib/client-manager.js:260:11)
at ClientManager.authenticateClientCallback (/usr/lib/node_modules/drupal-node.js/lib/client-manager.js:215:8)
at Request._callback (/usr/lib/node_modules/drupal-node.js/lib/client-manager.js:90:28)
at Request.self.callback (/usr/lib/node_modules/drupal-node.js/node_modules/request/request.js:198:22)
at emitTwo (events.js:87:13)
at Request.emit (events.js:172:7)

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States SocialNicheGuru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The 7.x-1.x branch is now not supported. Any bug will be fixed in the 7.x-2.x branch, until Drupal 7.x is not supported. It is probably better to focus on resolving bugs in the Drupal 8 branch and make it compatible with Drupal 9 or Drupal 10.

Production build 0.69.0 2024