What is a TransientTransactionError in Mongoose (or MongoDB)?

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

    Make sure the server didn't ran out of storage space.

    In my case none of the suggested answers helped. I was pulling out my hair until I've noticed that the server simply ran out of storage space. Clearing up a few megabytes of storage solved the error immediately.

    The TransientTransactionError actually makes sense in this scenario due to its nature of being a temporary error that could be resolved upon an explicit retry - though it did took me a while to figure out it had to do with a storage issue.

提交回复
热议问题