node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'dotenv'
Require stack:
- /home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.2
node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'dotenv'
Require stack:
- /home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home2/sistema7/public_html/test.sistemaspro.info/trokkmart-test/index.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.2
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'dotenv'
Require stack:
- /home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.2
node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module 'dotenv'
Require stack:
- /home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js
- /usr/local/lsws/fcgi-bin/lsnode.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1207:15)
    at Module._load (node:internal/modules/cjs/loader:1038:27)
    at Module.require (node:internal/modules/cjs/loader:1289:19)
    at require (node:internal/modules/helpers:182:18)
    at Object.<anonymous> (/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js:1:1)
    at Module._compile (node:internal/modules/cjs/loader:1521:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1623:10)
    at Module.load (node:internal/modules/cjs/loader:1266:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at Module.require (node:internal/modules/cjs/loader:1289:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/index.js',
    '/usr/local/lsws/fcgi-bin/lsnode.js'
  ]
}

Node.js v20.20.2
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.
ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.
    at Object.xForwardedForHeader (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-rate-limit/dist/index.cjs:396:13)
    at wrappedValidations.<computed> [as xForwardedForHeader] (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-rate-limit/dist/index.cjs:720:22)
    at Object.keyGenerator (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-rate-limit/dist/index.cjs:830:20)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-rate-limit/dist/index.cjs:920:32
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-rate-limit/dist/index.cjs:873:5 {
  code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',
  help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'
}
Error: connect ECONNREFUSED 127.0.0.1:3306
    at PromisePool.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356:22)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:384:30
    at new Promise (<anonymous>)
    at MySQLStore.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:381:10)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:232:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: connect ECONNREFUSED 127.0.0.1:3306
    at PromisePool.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356:22)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:384:30
    at new Promise (<anonymous>)
    at MySQLStore.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:381:10)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:170:16
/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356
    const localErr = new Error();
                     ^

Error: connect ECONNREFUSED 127.0.0.1:3306
    at PromisePool.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356:22)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:384:30
    at new Promise (<anonymous>)
    at MySQLStore.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:381:10)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:372:16 {
  code: 'ECONNREFUSED',
  errno: -111,
  sql: undefined,
  sqlState: undefined,
  sqlMessage: undefined
}

Node.js v20.20.2
Error: connect ECONNREFUSED 127.0.0.1:3306
    at PromisePool.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356:22)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:384:30
    at new Promise (<anonymous>)
    at MySQLStore.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:381:10)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:232:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: connect ECONNREFUSED 127.0.0.1:3306
    at PromisePool.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/node_modules/mysql2/promise.js:356:22)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:384:30
    at new Promise (<anonymous>)
    at MySQLStore.query (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:381:10)
    at /home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express-mysql-session/index.js:170:16
TypeError: /home2/sistema7/public_html/trokkmart-test.sistemaspro.info/views/pedido-seguimiento.ejs:48
    46|       </p>
    47| 
 >> 48|       <h3 style="font-family: var(--font-display); margin: 1.6rem 0 0.6rem;">Método de pago: <%= pedido.metodoPago.nombre %></h3>
    49|       <p style="white-space: pre-wrap; background: var(--bg); padding: 1rem; border-radius: 8px; font-size: 0.9rem;"><%= pedido.metodoPago.datosPago %></p>
    50|       <% if (pedido.metodoPago.instrucciones) { %>
    51|         <p style="font-size: 0.85rem; color: var(--ink-soft);"><%= pedido.metodoPago.instrucciones %></p>

Cannot read properties of null (reading 'nombre')
    at eval ("/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/views/pedido-seguimiento.ejs":50:44)
    at pedido-seguimiento (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:643:23)
    at tryHandleCache (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:253:42)
    at ejs.renderFile [as engine] (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:444:12)
    at View.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/view.js:139:8)
    at tryRender (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/application.js:627:10)
    at Function.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/application.js:574:3)
    at ServerResponse.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/response.js:923:7)
    at mostrar (/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/controllers/pedidoPublicoController.js:16:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
TypeError: /home2/sistema7/public_html/trokkmart-test.sistemaspro.info/views/pedido-seguimiento.ejs:48
    46|       </p>
    47| 
 >> 48|       <h3 style="font-family: var(--font-display); margin: 1.6rem 0 0.6rem;">Método de pago: <%= pedido.metodoPago.nombre %></h3>
    49|       <p style="white-space: pre-wrap; background: var(--bg); padding: 1rem; border-radius: 8px; font-size: 0.9rem;"><%= pedido.metodoPago.datosPago %></p>
    50|       <% if (pedido.metodoPago.instrucciones) { %>
    51|         <p style="font-size: 0.85rem; color: var(--ink-soft);"><%= pedido.metodoPago.instrucciones %></p>

Cannot read properties of null (reading 'nombre')
    at eval ("/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/views/pedido-seguimiento.ejs":50:44)
    at pedido-seguimiento (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:643:23)
    at tryHandleCache (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:253:42)
    at ejs.renderFile [as engine] (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/ejs/lib/cjs/ejs.js:444:12)
    at View.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/view.js:139:8)
    at tryRender (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/application.js:627:10)
    at Function.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/application.js:574:3)
    at ServerResponse.render (/home2/sistema7/nodevenv/public_html/trokkmart-test.sistemaspro.info/20/lib/node_modules/express/lib/response.js:923:7)
    at mostrar (/home2/sistema7/public_html/trokkmart-test.sistemaspro.info/controllers/pedidoPublicoController.js:16:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[unhandledRejection] no se interrumpe el proceso por esto: connect ECONNREFUSED 127.0.0.1:3306
