WebMongoError: topology was destroyed. 分析得出,出现这个问题是因为,当mongodb尝试写入某个数据的时候,连接被中断了! 解决方法:检查代码中是否存在操作数据的过程中,意外地执行了client.close()关闭连接了mongod数据库,如果有则将client.close删除,只在最后才关闭连接。 WebNormally, the ‘MongoDB error topology was destroyed’ error occurs if the node server’s connection to the MongoDB instance was interrupted while it was trying to write to it. Or if …
How to fix the ‘mongoError: Topology was destroyed’ error with …
WebmongoError: Topology was destroyed node.js mongodb mongoose restify pm2 162,017 Solution 1 It seems to mean your node server's connection to your MongoDB instance … WebI'm super new to databases in general and decided to get started with MongoDB a few days ago. I've run into a problem I cannot find a solution to for the life of me (When I google this issue, people who have these issues are building full blown databases and applications, and the answers are super complicated in return -- I'm just over here trying to update a … grey wolf helos
How to fix the ‘mongoError: Topology was destroyed’ error with …
Web11 dec. 2015 · @Adam-Poniatowski & @HARIOM-VASHISTH:. I've managed to migrate my NodeBB to Google Cloud and it's running in clustered mode. However, I'm having issues with traffic spikes which clog my CPU. WebIn mongoose "topology destroy" error occurs when your node server has lost the TCP connection with mongodb server and its max retry connection limit has been crossed. In … Web17 apr. 2024 · Driver not reconnecting on "MongoError: Topology was destroyed" ... However, I think whichever the reason, the mongodb driver *ought* to try to reconnect in such cases. I am using the mongo db driver version 2.1.21 (from npm). Mongo is 3.4.3. I connect to mongo in my node app with: // Connect to the DB fieldstone on house