What is a TransientTransactionError in Mongoose (or MongoDB)?

前端 未结 16 1796
庸人自扰
庸人自扰 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 07:55

    I had

      'MongoNetworkError',
      errorLabels: [ 'TransientTransactionError' ],
      [Symbol(mongoErrorContextSymbol)]:
    

    I added my current IP to whiteList following "main page > security section > network access > add IP" in MongoDB website.

    I hope this helps.

提交回复
热议问题