What is a TransientTransactionError in Mongoose (or MongoDB)?

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

    You can read about the error online but the solution for this problem is: go to you MongoDB atlas and add your IP address.

    Go to: main page > security section > network access > add IP

    This problem is basically when the architecture do not know your own IP address.

    Also, copy-paste directly to google to get straight forward solution.

提交回复
热议问题