8 months ago
/app/node_modules/path-to-regexp/dist/index.js:73
throw new TypeError(`Missing parameter name at ${i}: ${DEBUG_URL}`);
^
TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError
at name (/app/node_modules/path-to-regexp/dist/index.js:73:19)
at lexer (/app/node_modules/path-to-regexp/dist/index.js:91:27)
at lexer.next (<anonymous>)
at Iter.peek (/app/node_modules/path-to-regexp/dist/index.js:106:38)
at Iter.tryConsume (/app/node_modules/path-to-regexp/dist/index.js:112:28)
at Iter.text (/app/node_modules/path-to-regexp/dist/index.js:128:30)
at consume (/app/node_modules/path-to-regexp/dist/index.js:152:29)
at parse (/app/node_modules/path-to-regexp/dist/index.js:183:20)
at /app/node_modules/path-to-regexp/dist/index.js:294:74
at Array.map (<anonymous>)
Node.js v18.20.5
7 Replies
8 months ago
I am new to deployment... Need help on this...
8 months ago
throw new TypeError(`Missing parameter name at ${i}: ${DEBUG_URL}`);
^
TypeError: Missing parameter name at 1: https://git.new/pathToRegexpError
whats the regex line you are doing?
7 months ago
I've faced this issue before I almost cried
To fix it basically remove that express version line from ur package.json, then delete ur node_modules and package-lock.json
Then install this command npm install express@4
Then run ur server again voila it will work
cybersage5
I've faced this issue before I almost cried To fix it basically remove that express version line from ur package.json, then delete ur node_modules and package-lock.json Then install this command npm install express@4 Then run ur server again voila it will work
7 months ago
it doesnt work for me bro
indokudev
it doesnt work for me bro
7 months ago
Paste me your logs like you build or deploy logs
Let me check out the issue
cybersage5
Paste me your logs like you build or deploy logsLet me check out the issue
7 months ago
Failed to cleanup expired pending users: AggregateError [ECONNREFUSED]:
at /app/backend/node_modules/pg-pool/index.js:45:11
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Timeout._onTimeout (/app/backend/utils/cleanup.js:9:22) {
code: 'ECONNREFUSED',
[errors]: [
Error: connect ECONNREFUSED ::1:5432
at createConnectionError (node:net:1652:14)
at afterConnectMultiple (node:net:1682:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432
},
Error: connect ECONNREFUSED 127.0.0.1:5432
at createConnectionError (node:net:1652:14)
at afterConnectMultiple (node:net:1682:16) {
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
}
]
}
idk dude, i just follow your instruction then it showed this error
7 months ago
This your new eror shows a connection eror
After you followed my instructions the deplu crash eror was fixed so this is an entirely new eror
Cause of the Error
The ECONNREFUSED error typically means:
Database Server Not Running: The PostgreSQL server is not running on the specified host (localhost) and port (5432).
Incorrect Configuration: The application is trying to connect to the wrong host or port, or the database is not configured to accept connections from the application.
Network Issues: A firewall, network configuration, or Docker/container setup is blocking the connection.
IPv4/IPv6 Issue: The application is trying both ::1 (IPv6 localhost) and 127.0.0.1 (IPv4 localhost), and neither is working, suggesting a potential misconfiguration in how the database is bound.