I tried to use node js in VPS (Debian 7) but it do not work. When i could send broadcast message i had an error: authenticateClientCallback: Failed to parse authentication message [SyntaxError: Unexpected token ]. But if i use Node js integration 7.10 version it is working, but with same error. And it is working broken. How can i decide this error and start the node server in my site?
p.s. and else, in my drupal site report, when i used nodejs 7.12 module i had status: "The Drupal-Node.js server (version 1.0.9) was successfully reached."
It is my config:

settings = {
  scheme: 'http',
  port: 8085,
  host: 'ip',
  resource: '/socket.io',
  serviceKey: 'key',
  backend: {
    port: 80,
    host: 'site-host',
    scheme: 'http',
    basePath: '',
    messagePath: '/nodejs/message'
  },
  debug: true,
  sslKeyPath: '',
  sslCertPath: '',
  sslCAPath: '',
  baseAuthPath: '/nodejs/',
  publishUrl: 'publish',
  kickUserUrl: 'user/kick/:uid',
  logoutUserUrl: 'user/logout/:authtoken',
  addUserToChannelUrl: 'user/channel/add/:channel/:uid',
  removeUserFromChannelUrl: 'user/channel/remove/:channel/:uid',
  addChannelUrl: 'channel/add/:channel',
  removeChannelUrl: 'channel/remove/:channel',
  setUserPresenceListUrl: 'user/presence-list/:uid/:uidList',
  addAuthTokenToChannelUrl: 'authtoken/channel/add/:channel/:uid',
  removeAuthTokenFromChannelUrl: 'authtoken/channel/remove/:channel/:uid',
  toggleDebugUrl: 'debug/toggle',
  contentTokenUrl: 'content/token',
  publishMessageToContentChannelUrl: 'content/token/message',
  extensions: [],
  clientsCanWriteToChannels: false,
  clientsCanWriteToClients: false,
  transports: ['websocket', 'polling'],
  jsMinification: true,
  jsEtag: true,
  logLevel: 1
};

Comments

buddy90210 created an issue. See original summary.

glekli’s picture

Status: Active » Closed (duplicate)
thomas.leperou’s picture

Look at this https://www.drupal.org/node/1524296#comment-7313730. Solve "authenticateClientCallback: Failed to parse authentication message:
[SyntaxError: Unexpected token <]" issue.