My node.js server is working and it is usable but I get an error every so often.

If I start my server using node server.js, it works perfect. No errors at all.
If I start it with Forever using forever start server.js, I get the following error in my Recent log messages.

Notice: Undefined index: uid in nodejs_message_handler() (line 533 of /sites/all/modules/nodejs/nodejs.module).

My nodejs.config.js

settings = {
  scheme: 'http',
  port: 8080,
  host: 'www.***.com',
  resource: '/socket.io',
  serviceKey: '***',
  backend: {
    port: 80,
    host: 'www.***.com',
    scheme: 'http',
    basePath: '',
    messagePath: '/nodejs/message'
  },
  debug: false,
  baseAuthPath: '/nodejs/',
  publishUrl: 'publish',
  extensions: [],
  clientsCanWriteToChannels: true,
  clientsCanWriteToClients: true,
  transports: ['websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling'],
  jsMinification: true,
  jsEtag: true,
  logLevel: 1
};

Comments

TheMGamer’s picture

Issue summary: View changes
Anonymous’s picture

Anonymous’s picture

Status: Active » Fixed
TheMGamer’s picture

thanks for your fast response!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.