Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
bazzly CreditAttribution: bazzly commentedOn 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'
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
a.knutson CreditAttribution: a.knutson commentedI'm getting the same issue, and I've tried #1 with no luck. Here is my config file
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?
Comment #4
bobopolis CreditAttribution: bobopolis commentedI 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.
Comment #5
jmanny CreditAttribution: jmanny commentedDoes any know how to fix this? I'm still getting this
Backend authentication url not found
Hope someone can help me out, thanks
Comment #6
jmanny CreditAttribution: jmanny commentedComment #7
Jaya M CreditAttribution: Jaya M as a volunteer commentedHave 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.
Comment #8
kkalaskar CreditAttribution: kkalaskar commented#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
after adding "basePath": '/drupal7', in file and restart the server and it works fine for me.