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
Comment #1
TheMGamer commentedComment #2
Anonymous (not verified) commentedthanks, i just pushed a fix here:
http://drupalcode.org/project/nodejs.git/commit/5fc5dda
Comment #3
Anonymous (not verified) commentedComment #4
TheMGamer commentedthanks for your fast response!