title: const err = new MongooseError(message);
body: <p>I am trying to create a project which allows the user to enter &quot;email&quot;, &quot;username&quot; and &quot;Password&quot; to register to the site,
  When I try to enter a user using the &quot;username&quot;, email&quot; and &quot;password&quot; to enter this site, I get the following error:</p>
  <pre><code>Backend server is running
  not connected
  C:\Users\odewo\chat-app\NODE-REST-API\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:149
            const err = new MongooseError(message);
                        ^
  
  MongooseError: Operation `users.insertOne()` buffering timed out after 10000ms
      at Timeout.&lt;anonymous&gt; (C:\Users\odewo\chat-app\NODE-REST-API\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:149:23)
      at listOnTimeout (node:internal/timers:557:17)
      at processTimers (node:internal/timers:500:7)
  </code></pre>
  <p>Below is my mongoose code:</p>
  <pre><code>mongoose.connect(process.env.MONGO_URL, {
    userNewUrlPaser: true,
    useUnifiedTopology: true,
    useCreateIndex: true,
  })
    .then(() =&gt; {
      console.log('Connected to MongoDB');
    })
    .catch((e) =&gt; {
      console.log('not connected');
    });
  </code></pre>
  <p>This is auth.js code for routes:</p>
  <pre><code>const router = require('express').Router();
  const User = require('../models/User');
  
  //  REGISTER
  router.get('/register', async (req, res) =&gt; {
    const user = await new User({
      username: 'samson',
      email: 'samson@gmail.com',
      password: '123456',
    });
  
    await user.save();
    res.send('ok');
  });
  module.exports = router;
  </code></pre>
  <p>I will really appreciate your help</p>