title: MongooseError: Operation `articles.insertOne()` buffering timed out after 10000ms, Node.js, Mongoose
body: <p>I've been following a tutorial on making a Markdown blog with Mongoose (<a href="https://www.youtube.com/watch?v=1NrHkjlWVhM" rel="nofollow noreferrer">https://www.youtube.com/watch?v=1NrHkjlWVhM</a>),</p>
  <p>Here is the part of the code that seems to be causing the area:</p>
  <pre><code>const Article = require('./../models/article')
  const router = express.Router()
  
  router.get('/new', (req, res) =&gt; {
      res.render('articles/new', {article : new Article()})
  })
  
  router.get('/:id', (req, res) =&gt; {
      res.send(req.params.id)
  })
  
  router.post('/', async (req, res) =&gt; {
      let article = new Article({
          title: req.body.title,
          markdown: req.body.markdown
      })
  
      try{
      article = await article.save()
      res.redirect(`/articles/${article.id}`)
      } catch (e) {
          console.log(e)
          res.render('articles/new', {article: article})
      }
  })
  
  module.exports = router
  </code></pre>
  <p>When I run this, I get the error:</p>
  <pre><code>MongooseError: Operation `articles.insertOne()` buffering timed out after 10000ms
      at Timeout.&lt;anonymous&gt; (C:\Users\USER\Documents\Folder\Folder\Website\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:185:20)
      at listOnTimeout (internal/timers.js:549:17)
      at processTimers (internal/timers.js:492:7)
  </code></pre>
  <p>article.js code:</p>
  <pre><code>const mongoose = require('mongoose')
  
  const articleSchema = new mongoose.Schema({
      title: {
          type: String,
          required: true
      },
      markdown: {
          type: String,
          required: true
      },
      createdAt: {
          type: Date,
          default: Date.now
      }
  })
  
  module.exports = mongoose.model('Article', articleSchema)
  </code></pre>