Nov 16 10:02:17 PM ==> Running ‘node app.js’
Nov 16 10:02:23 PM Fri, 17 Nov 2023 01:02:23 GMT express-session deprecated req.secret; provide secret option at app.js:44:9
Nov 16 10:02:23 PM Warning: connect.session() MemoryStore is not
Nov 16 10:02:23 PM designed for a production environment, as it will leak
Nov 16 10:02:23 PM memory, and will not scale past a single process.
Nov 16 10:02:23 PM Error en la conexión: MongooseError: The uri
parameter to openUri()
must be a string, got “undefined”. Make sure the first parameter to mongoose.connect()
or mongoose.createConnection()
is a string.
Nov 16 10:02:23 PM at NativeConnection.createClient (/opt/render/project/src/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:206:11)
Nov 16 10:02:23 PM at NativeConnection.openUri (/opt/render/project/src/node_modules/mongoose/lib/connection.js:755:34)
Nov 16 10:02:23 PM at Mongoose.connect (/opt/render/project/src/node_modules/mongoose/lib/index.js:404:15)
Nov 16 10:02:23 PM at connectDB (/opt/render/project/src/server/db/conexion.js:6:26)
Nov 16 10:02:23 PM at iniciar (/opt/render/project/src/app.js:37:17)
Nov 16 10:02:23 PM at Object. (/opt/render/project/src/app.js:89:1)
Nov 16 10:02:23 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 16 10:02:23 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 16 10:02:23 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 16 10:02:23 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 16 10:02:23 PM el servidor se inició undefined
we have problems
Hi,
Those logs show you’ve not defined a connection string for a MongoDB server:
MongooseError: The uri parameter to openUri() must be a string, got “undefined”.
You’ll need to ensure your code is configured to point at a MongoDB server.
Alan
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.