Cpanel configuration

Hi everyone,
I'm trying to publish my project in nodejs on 2 different hosting providers (one of which is orange host) that use cpanel but in both cases the app doesn't start and the index.hmtl of the public_html folder is always displayed

I followed this tutorial step by step https://www.youtube.com/watch?v=0YUdemtXKJE and I read practically all the posts on the forum but I really don't understand how to point the domain to the nodejs project folder.

I followed these steps:

  1. I created the nodejsapp folder on the root of my domain and published the project in FTP

  2. I created the webapplication in node

  3. I ran the npm install (here I found an error but I solved it by copying the package.json into the nodevenv/nodejsapp/18/lib folder)

At this point the site should be visible but I continue to see the index.html

I also tried to rename the index.js file to app.js as suggested here in the forum.

I ask for help to solve this problem because it is becoming really frustrating

Have you checked the docs explaining how to set this up?

Yes, I followed it step by step and did it again more than once even on different hosting providers.
The domain always points only to public_html.
https://www.brainpod.co/

And you did exactly as explained here, especially the document root part?

In Cpanel there is no document root option.

I followed this tutorial https://www.youtube.com/watch?v=0YUdemtXKJE for orange host in which the project folder was specified and not the public folder

Simply delete the html file. Because orangehost servers support php as well as node any index.html file in the public folder will run overriding the node startup route.

It is here in the orangehost docs on firum

Hi Hyperbytes, I had already read the post and watched the video, I tried to delete the index.html but I have a timeout error.

Could it be that my application is not working properly?

App config looks ok,did you try to delete it with the orangehost cpanel file manager?
Timeout error is more likely to be incorrect ftp setup or directory permissions.

Yes I deleted index.html from the Cpanel file manager
Ftp has no problems, I also tried deleting all the contents of my index.ejs to see if that was causing problems but I think it doesn't even get to call it, for me it's still looking for index.html

I am currently on holiday in Crete so cant fire up computer to compare settings etc (just have phone). Back Saturday.
I really need to see your layout and page content to troubleshoot as the 500 is unexpected and to fix we need to know what is causing it.

Really kind thanks.
In the meantime I can try to create an empty project and upload to see if it is something in my node app that generates the error.

Your nodejs app settings look exactly as i would expect so i doubt that is where the issue lies

Also when using databases, some users have had issues with the mysql2 driver so i suggest you use mysql legacy driver setting if so.

In this project I don't have database at the moment.
In the node app directory I find a log file that reports some errors

2024-10-15T21:51:51.077Z server-connect:setup:config {
  port: 3000,
  debug: true,
  secret: 'N67X9UUyJGqcTBA',
  tmpFolder: '/home/brainpod/nodejsapp/tmp',
  abortOnDisconnect: false,
  createApiRoutes: true,
  compression: true,
  redis: false,
  cron: true,
  static: { index: false },
  session: {
    name: 'brainpod_debsite.sid',
    resave: false,
    saveUninitialized: false,
    store: { '$type': 'memory', ttl: 86400 }
  },
  cors: { origin: false, methods: 'GET,POST', credentials: true },
  csrf: { enabled: false, exclude: 'GET,HEAD,OPTIONS' },
  rateLimit: {
    enabled: false,
    duration: 60,
    points: 100,
    private: { provider: '', duration: 60, points: 1000 }
  },
  globals: {},
  rateLimiter: {},
  mail: {},
  auth: {},
  oauth: {},
  db: {},
  s3: {},
  jwt: {},
  stripe: {},
  env: {
    currentHost: 'https://brainpod.azurewebsites.net/',
    logoPath: 'https://brainpod.azurewebsites.net/assets/images/logo/logo-email.svg'
  }
}
2024-10-15T21:51:51.446Z server-connect:setup:session init session store { '$type': 'memory', ttl: 86400 }
2024-10-15T21:51:51.473Z server-connect:setup:upload Upload middleware configured.
2024-10-15T21:51:51.474Z server-connect:secure CSRF Protection initialized
2024-10-15T21:51:51.477Z server-connect:setup:routes Api route /api/become-partner(.json)? created
2024-10-15T21:51:51.478Z server-connect:setup:routes Api route /api/contact-dealer(.json)? created
2024-10-15T21:51:51.479Z server-connect:setup:routes Api route /api/contact(.json)? created
2024-10-15T21:51:51.479Z server-connect:setup:routes Api route /api/meta-data(.json)? created
2024-10-15T21:51:51.480Z server-connect:setup:routes Api route /api/order(.json)? created
2024-10-15T21:51:51.481Z server-connect:setup:routes Api route /api/test(.json)? created
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
2024-10-15T23:01:05.780Z server-connect:setup:config {
  port: '3000',
  debug: true,
  secret: 'N67X9UUyJGqcTBA',
  tmpFolder: '/home/brainpod/nodejsapp/tmp',
  abortOnDisconnect: false,
  createApiRoutes: true,
  compression: true,
  redis: false,
  cron: true,
  static: { index: false },
  session: {
    name: 'brainpod_debsite.sid',
    resave: false,
    saveUninitialized: false,
    store: { '$type': 'memory', ttl: 86400 }
  },
  cors: { origin: false, methods: 'GET,POST', credentials: true },
  csrf: { enabled: false, exclude: 'GET,HEAD,OPTIONS' },
  rateLimit: {
    enabled: false,
    duration: 60,
    points: 100,
    private: { provider: '', duration: 60, points: 1000 }
  },
  globals: {},
  rateLimiter: {},
  mail: {},
  auth: {},
  oauth: {},
  db: {},
  s3: {},
  jwt: {},
  stripe: {},
  env: {
    currentHost: 'https://brainpod.azurewebsites.net/',
    logoPath: 'https://brainpod.azurewebsites.net/assets/images/logo/logo-email.svg'
  }
}
2024-10-15T23:01:06.162Z server-connect:setup:session init session store { '$type': 'memory', ttl: 86400 }
2024-10-15T23:01:06.231Z server-connect:setup:upload Upload middleware configured.
2024-10-15T23:01:06.231Z server-connect:secure CSRF Protection initialized
2024-10-15T23:01:06.235Z server-connect:setup:routes Api route /api/become-partner(.json)? created
2024-10-15T23:01:06.236Z server-connect:setup:routes Api route /api/contact-dealer(.json)? created
2024-10-15T23:01:06.236Z server-connect:setup:routes Api route /api/contact(.json)? created
2024-10-15T23:01:06.237Z server-connect:setup:routes Api route /api/meta-data(.json)? created
2024-10-15T23:01:06.237Z server-connect:setup:routes Api route /api/order(.json)? created
2024-10-15T23:01:06.238Z server-connect:setup:routes Api route /api/test(.json)? created
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
node:internal/modules/cjs/loader:1143
  throw err;
  ^

Error: Cannot find module '/home/brainpod/nodejsapp//index.js'
Require stack:
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
    at Module._load (node:internal/modules/cjs/loader:981:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at startApplication (/usr/local/lsws/fcgi-bin/lsnode.js:48:15)
    at Object.<anonymous> (/usr/local/lsws/fcgi-bin/lsnode.js:16:1)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lsws/fcgi-bin/lsnode.js' ]
}

Node.js v18.20.4
2024-10-16T06:13:47.079Z server-connect:setup:config {
  port: '3000',
  debug: true,
  secret: 'N67X9UUyJGqcTBA',
  tmpFolder: '/home/brainpod/nodejsapp/tmp',
  abortOnDisconnect: false,
  createApiRoutes: true,
  compression: true,
  redis: false,
  cron: true,
  static: { index: false },
  session: {
    name: 'brainpod_debsite.sid',
    resave: false,
    saveUninitialized: false,
    store: { '$type': 'memory', ttl: 86400 }
  },
  cors: { origin: false, methods: 'GET,POST', credentials: true },
  csrf: { enabled: false, exclude: 'GET,HEAD,OPTIONS' },
  rateLimit: {
    enabled: false,
    duration: 60,
    points: 100,
    private: { provider: '', duration: 60, points: 1000 }
  },
  globals: {},
  rateLimiter: {},
  mail: {},
  auth: {},
  oauth: {},
  db: {},
  s3: {},
  jwt: {},
  stripe: {},
  env: {
    currentHost: 'https://brainpod.azurewebsites.net/',
    logoPath: 'https://brainpod.azurewebsites.net/assets/images/logo/logo-email.svg'
  }
}
2024-10-16T06:13:47.473Z server-connect:setup:session init session store { '$type': 'memory', ttl: 86400 }
2024-10-16T06:13:47.542Z server-connect:setup:upload Upload middleware configured.
2024-10-16T06:13:47.543Z server-connect:secure CSRF Protection initialized
2024-10-16T06:13:47.548Z server-connect:setup:routes Api route /api/become-partner(.json)? created
2024-10-16T06:13:47.549Z server-connect:setup:routes Api route /api/contact-dealer(.json)? created
2024-10-16T06:13:47.551Z server-connect:setup:routes Api route /api/contact(.json)? created
2024-10-16T06:13:47.552Z server-connect:setup:routes Api route /api/meta-data(.json)? created
2024-10-16T06:13:47.553Z server-connect:setup:routes Api route /api/order(.json)? created
2024-10-16T06:13:47.554Z server-connect:setup:routes Api route /api/test(.json)? created
2024-10-16T06:43:05.901Z server-connect:setup:config {
  port: '3000',
  debug: true,
  secret: 'N67X9UUyJGqcTBA',
  tmpFolder: '/home/brainpod/nodejsapp/tmp',
  abortOnDisconnect: false,
  createApiRoutes: true,
  compression: true,
  redis: false,
  cron: true,
  static: { index: false },
  session: {
    name: 'brainpod_debsite.sid',
    resave: false,
    saveUninitialized: false,
    store: { '$type': 'memory', ttl: 86400 }
  },
  cors: { origin: false, methods: 'GET,POST', credentials: true },
  csrf: { enabled: false, exclude: 'GET,HEAD,OPTIONS' },
  rateLimit: {
    enabled: false,
    duration: 60,
    points: 100,
    private: { provider: '', duration: 60, points: 1000 }
  },
  globals: {},
  rateLimiter: {},
  mail: {},
  auth: {},
  oauth: {},
  db: {},
  s3: {},
  jwt: {},
  stripe: {},
  env: {
    currentHost: 'https://brainpod.azurewebsites.net/',
    logoPath: 'https://brainpod.azurewebsites.net/assets/images/logo/logo-email.svg'
  }
}
2024-10-16T06:43:06.265Z server-connect:setup:session init session store { '$type': 'memory', ttl: 86400 }
2024-10-16T06:43:06.338Z server-connect:setup:upload Upload middleware configured.
2024-10-16T06:43:06.338Z server-connect:secure CSRF Protection initialized
2024-10-16T06:43:06.342Z server-connect:setup:routes Api route /api/become-partner(.json)? created
2024-10-16T06:43:06.342Z server-connect:setup:routes Api route /api/contact-dealer(.json)? created
2024-10-16T06:43:06.343Z server-connect:setup:routes Api route /api/contact(.json)? created
2024-10-16T06:43:06.344Z server-connect:setup:routes Api route /api/meta-data(.json)? created
2024-10-16T06:43:06.345Z server-connect:setup:routes Api route /api/order(.json)? created
2024-10-16T06:43:06.346Z server-connect:setup:routes Api route /api/test(.json)? created
2024-10-16T07:31:40.776Z server-connect:router Serving templateView /
2024-10-16T07:31:40.782Z server-connect:app Executing action step wait
2024-10-16T07:31:40.782Z server-connect:app options: { delay: 500 }
2024-10-16T07:31:41.283Z server-connect:output wait: undefined
2024-10-16T07:31:41.288Z server-connect:app Executing action step send
2024-10-16T07:31:41.289Z server-connect:app options: {
  url: "{{$_ENV.currentHost+'data/meta/'+$_COOKIE.lang+'.json'}}",
  dataType: 'json',
  schema: [
    { type: 'object', name: 'data', sub: [Array] },
    { type: 'object', name: 'headers', sub: [Array] }
  ]
}
2024-10-16T07:35:42.095Z server-connect:output api: undefined
2024-10-16T07:47:18.140Z server-connect:router Serving templateView /
2024-10-16T07:47:18.140Z server-connect:app Executing action step wait
2024-10-16T07:47:18.140Z server-connect:app options: { delay: 500 }
2024-10-16T07:47:18.641Z server-connect:output wait: undefined
2024-10-16T07:47:18.642Z server-connect:app Executing action step send
2024-10-16T07:47:18.643Z server-connect:app options: {
  url: "{{$_ENV.currentHost+'data/meta/'+$_COOKIE.lang+'.json'}}",
  dataType: 'json',
  schema: [
    { type: 'object', name: 'data', sub: [Array] },
    { type: 'object', name: 'headers', sub: [Array] }
  ]
}
2024-10-16T07:47:39.615Z server-connect:router Serving templateView /
2024-10-16T07:47:39.616Z server-connect:app Executing action step wait
2024-10-16T07:47:39.617Z server-connect:app options: { delay: 500 }
2024-10-16T07:47:40.117Z server-connect:output wait: undefined
2024-10-16T07:47:40.118Z server-connect:app Executing action step send
2024-10-16T07:47:40.118Z server-connect:app options: {
  url: "{{$_ENV.currentHost+'data/meta/'+$_COOKIE.lang+'.json'}}",
  dataType: 'json',
  schema: [
    { type: 'object', name: 'data', sub: [Array] },
    { type: 'object', name: 'headers', sub: [Array] }
  ]
}
2024-10-16T07:51:19.375Z server-connect:output api: undefined
2024-10-16T07:51:29.437Z server-connect:output api: undefined
2024-10-16T08:08:36.239Z server-connect:router Serving templateView /
2024-10-16T08:08:36.240Z server-connect:app Executing action step wait
2024-10-16T08:08:36.240Z server-connect:app options: { delay: 500 }
2024-10-16T08:08:36.739Z server-connect:output wait: undefined
2024-10-16T08:08:36.740Z server-connect:app Executing action step send
2024-10-16T08:08:36.740Z server-connect:app options: {
  url: "{{$_ENV.currentHost+'data/meta/'+$_COOKIE.lang+'.json'}}",
  dataType: 'json',
  schema: [
    { type: 'object', name: 'data', sub: [Array] },
    { type: 'object', name: 'headers', sub: [Array] }
  ]
}
2024-10-16T08:13:45.418Z server-connect:setup:config {
  port: '3000',
  debug: true,
  secret: 'N67X9UUyJGqcTBA',
  tmpFolder: '/home/brainpod/nodejsapp/tmp',
  abortOnDisconnect: false,
  createApiRoutes: true,
  compression: true,
  redis: false,
  cron: true,
  static: { index: false },
  session: {
    name: 'brainpod_debsite.sid',
    resave: false,
    saveUninitialized: false,
    store: { '$type': 'memory', ttl: 86400 }
  },
  cors: { origin: false, methods: 'GET,POST', credentials: true },
  csrf: { enabled: false, exclude: 'GET,HEAD,OPTIONS' },
  rateLimit: {
    enabled: false,
    duration: 60,
    points: 100,
    private: { provider: '', duration: 60, points: 1000 }
  },
  globals: {},
  rateLimiter: {},
  mail: {},
  auth: {},
  oauth: {},
  db: {},
  s3: {},
  jwt: {},
  stripe: {},
  env: {
    currentHost: 'https://brainpod.azurewebsites.net/',
    logoPath: 'https://brainpod.azurewebsites.net/assets/images/logo/logo-email.svg'
  }
}
2024-10-16T08:13:45.846Z server-connect:setup:session init session store { '$type': 'memory', ttl: 86400 }
2024-10-16T08:13:45.874Z server-connect:setup:upload Upload middleware configured.
2024-10-16T08:13:45.875Z server-connect:secure CSRF Protection initialized
2024-10-16T08:13:45.879Z server-connect:setup:routes Api route /api/become-partner(.json)? created
2024-10-16T08:13:45.879Z server-connect:setup:routes Api route /api/contact-dealer(.json)? created
2024-10-16T08:13:45.880Z server-connect:setup:routes Api route /api/contact(.json)? created
2024-10-16T08:13:45.881Z server-connect:setup:routes Api route /api/meta-data(.json)? created
2024-10-16T08:13:45.882Z server-connect:setup:routes Api route /api/order(.json)? created
2024-10-16T08:13:45.883Z server-connect:setup:routes Api route /api/test(.json)? created
2024-10-16T08:13:45.981Z server-connect:router Serving templateView /
2024-10-16T08:13:45.985Z server-connect:app Executing action step wait
2024-10-16T08:13:45.986Z server-connect:app options: { delay: 500 }
2024-10-16T08:13:46.488Z server-connect:output wait: undefined
2024-10-16T08:13:46.493Z server-connect:app Executing action step send
2024-10-16T08:13:46.494Z server-connect:app options: {
  url: "{{$_ENV.currentHost+'data/meta/'+$_COOKIE.lang+'.json'}}",
  dataType: 'json',
  schema: [
    { type: 'object', name: 'data', sub: [Array] },
    { type: 'object', name: 'headers', sub: [Array] }
  ]
}
2024-10-16T08:13:47.272Z server-connect:output api: undefined

Hello @enriweb77

Could it be the extra slash? :thinking:

Exactly what i spotted, probably the issue

Try deleting the node js app settings and remaking them
Restart is often insufficient

I created a blank app and it actually works fine.
I need to figure out where that double slash in my app is coming from right?

Its working so i guess that was not the problem!

Maybe a screenshot of your Wappler project settings would help narrow down possible troubles too.