What is a TransientTransactionError in Mongoose (or MongoDB)?

前端 未结 16 1785
庸人自扰
庸人自扰 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:03

    For me, the transient transaction error came whenever I switched from my wifi network to my phone's hotspot. If this happens to you too, go to MongoDB website where you have made your database and white list your current IP address again. This will solve your problem.

提交回复
热议问题