I'm gonn guess this is a dup, but was not 100 % sure.
I create the config, using the Configuration builder and when I run node server.js and do a System-wide Broadcast Notification I get backend authentication url not found.

Any ideas?
Thanks

Comments

bazzly’s picture

On a side not.. I also did this..I did the below and it seems to be working, I think...Just not with drupalchat..I think

The line

messagePath: '/nodejs/message'

must be changed to something like:

messagePath: '/my-site-directory/nodejs/message'

Anonymous’s picture

Status: Active » Closed (works as designed)
a.knutson’s picture

I'm getting the same issue, and I've tried #1 with no luck. Here is my config file

/**
* This configuration file was built using the 'Node.js server configuration builder'.
* For a more fully commented example see the file nodejs.config.js.example in the root of this module
*/
backendSettings = {
  "scheme":"http",
  "host":"localhost",
  "port":8222,
  "resource":"/socket.io",
  "publishUrl":"/nodejs/publish",
  "serviceKey":"bobhadababyitsaboy",
  "backend":{
  "port":80,
  "host":"localhost",
  "messagePath":"/nodejs/message/"},
  "clientsCanWriteToChannels":false,
  "clientsCanWriteToClients":false,
  "extensions":"",
//  "debug":true,
  "transports":["websocket",
  "flashsocket",
  "htmlfile",
  "xhr-polling",
  "jsonp-polling"],
  "jsMinification":true,
  "jsEtag":true,
  "logLevel":1
};
                   

socket.io starts just fine, but each page load on the drupal site causes "Backend authentication url not found" on the node server terminal. The nodejs.config.js file reflects my suggested configurations field in the configuration builder page. Am I missing a step here? Any suggestions?

bobopolis’s picture

I was getting the same error message "Backend authentication url not found".

Since I am running multiple Drupal instances on my localhost, I needed to change the second instance of the line "host":"localhost" to reflect my local URL. This is the backend host entry for the config file. Works after making that change.

jmanny’s picture

Issue summary: View changes

Does any know how to fix this? I'm still getting this
Backend authentication url not found
Hope someone can help me out, thanks

jmanny’s picture

Status: Closed (works as designed) » Active
Jaya M’s picture

Have you set the 'basePath' value for 'nodejs.config.js' file? The basePath should be the relative path to your drupal-base-path with respect to the value specified under 'host' in the same configuration file.

kkalaskar’s picture

#7 by Jaya M worked for me.

I am working on localhost with nodejs & drupla7, and facing same issue. drupal installed on http://localhost:9999/drupal7/

so my nodejs.config.js file look like

backendSettings = {
  "scheme":"http",
  "host":"localhost",
  "port":1337,
  "key":"/path/to/key/file",
  "cert":"/path/to/cert/file",
  "resource":"/socket.io",
  "publishUrl":"publish",
  "serviceKey":"",
  "backend":{
  "port":9999,
  "host":"localhost",
  "basePath": '/drupal7',
  "messagePath":"/nodejs/message"},
  "clientsCanWriteToChannels":false,
  "clientsCanWriteToClients":false,
  "extensions":"",
  "debug":false,
  "transports":["websocket",
  "polling"],
  "jsMinification":true,
  "jsEtag":true,
  "logLevel":1};

after adding "basePath": '/drupal7', in file and restart the server and it works fine for me.