sv crash

pablo-leonardo-rodoni
TRIAL

a year ago

nodejscrud@1.0.0 start

node src/app.js

Server is running on port 7021

/app/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:219

throw new MongooseError('The uri parameter to openUri() must be a ' +

^

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.

at NativeConnection.createClient (/app/node_modules/mongoose/lib/drivers/node-mongodb-native/connection.js:219:11)

at NativeConnection.openUri (/app/node_modules/mongoose/lib/connection.js:822:34)

at Mongoose.connect (/app/node_modules/mongoose/lib/mongoose.js:429:15)

at file:///app/src/app.js:13:10

at ModuleJob.run (node:internal/modules/esm/module_job:195:25)

at async ModuleLoader.import (node:internal/modules/esm/loader:337:24)

at async loadESM (node:internal/process/esm_loader:34:7)

at async handleMainPromise (node:internal/modules/run_main:106:12)

Node.js v18.20.2

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

a year ago

Show me your `mongoose.connect()` code please.