What is a TransientTransactionError in Mongoose (or MongoDB)?

前端 未结 16 1813
庸人自扰
庸人自扰 2020-11-27 07:36

I have server.js and db.js The db.js file interacts with my database using Mongoose and I use server.js to call functions

16条回答
  •  我在风中等你
    2020-11-27 08:06

    I had the same issue/error, albeit on a Windows machine. Even though I thought I had started the mongodb service, I didn't see it running in Windows Services. So, I manually started the mongoDB service inside Services and then the error went away. Hope this helps!

提交回复
热议问题