Closed Karman40 closed 3 years ago
I think you would be better served opening an issue with @nestjs/mongoose, we aren't familiar enough with how that module works to debug.
My best guess is that Mongoose is failing to connect. Can you try running await mongoose.connect(process.env.APP_MONGO_URL, { useFindAndModify: false, useUnifiedTopology: true })
and see what result you get?
Also, are you connecting to MongoDB Atlas, a local database, or a remote database?
@vkarpov15 Thanks your answer!
First, i open issues in @nestjs/mongoose issues #650, but thay said: "So please, report this in mongoose repository https://github.com/Automattic/mongoose"
I connenct to local database.
WIN 10, MongoDB server 4.2 Yesterday i upgraded to MongoDB to MongoDB Enterprise 4.4 but since then I haven't had time to test it.
Also use this, in Ubuntu 20.04 LTS VPS server, but i haven't looked at the bug here yet. Despite the error, all processes run flawlessly and work, only confusing the error message in the console.
I started the dev server and will report with experience in a few hours.
After then i update to 4.4 the bug is solved.
Tanks for your help!
Environment
Source code:
app.module.ts:
stream.ts:
Error log:
some times:
message:
I can't catch the error message. I don’t know if it’s a bug or just I don’t understand. Regardless, it works flawlessly. What should I do to prevent the error message from appearing? @nestjs/mongoose issues #650
Thank you in advance for your help!