Mongo DB buffering time out after 10000ms

What I did was increase the timeout of the connection function and logged the stack trace as u said. The error was caused because of the file floor1.js was outside of the scope of my index.js in the work space. The index file was completing all of its function before getting to save floor1.js and hence timeout. I used node fs and wrapped every floor files in index with increase in timeout and its working fine now.
P.S. Logging really helps.

Thanks for the idea Michael.

1 Like