Skip to content

Time out and Mongodb error #8

@memetaltin

Description

@memetaltin

Hello there,
Actually I'm getting many errors. Is it possible for you to help with these?

[nodemon] 3.1.0
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,cjs,json
[nodemon] starting node index.js
(node:5360) [MONGOOSE] DeprecationWarning: Mongoose: the strictQuery option will be switched back to false by default in Mongoose 7. Use mongoose.set('strictQuery', false); if you want to prepare for this change. Or use mongoose.set('strictQuery', true); to suppress this warning.
(Use node --trace-deprecation ... to show where the warning was created)
Server is running at 5000
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 Connection.openUri (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\connection.js:695:11)
at C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\index.js:414:10
at C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\helpers\promiseOrCallback.js:41:5
at new Promise ()
at promiseOrCallback (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\helpers\promiseOrCallback.js:40:10)
at Mongoose._promiseOrCallback (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\index.js:1290:10)
at Mongoose.connect (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\index.js:413:20)
at Object. (C:\Users\mehme\Desktop\python_dev\stockify\backend\db\dbconn.js:5:10)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
MongooseError: Operation users.findOne() buffering timed out after 10000ms
at Timeout. (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:175:23)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)
MongooseError: Operation users.findOne() buffering timed out after 10000ms
at Timeout. (C:\Users\mehme\Desktop\python_dev\stockify\backend\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:175:23)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions