Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
MongoDB JS 304 StatusCode

First of all I'm extremely sorry but i can't figure out what the title should be, I'm trying to send data to MongoDB Database but for some reason, I keep getting 304 status code, I tried searching it on the internet but I couldn't find a solution, and was hard for me to understand, can you guys please help me?

Here's the data I'm trying to send to DB

  const router = require("express").Router();
  const User = require("../models/User");



 router.get("/register", async (req,res) => {
 const user = await new User ({
 username:"username",
  email:"User@email.com",
  password:"123456"
  })
 await user.save();
 res.send("okk!");

});


module.exports = router;

// MongooseError: Operation users.insertOne() buffering timed out after 10000ms at Timeout. node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:151:23) at listOnTimeout (node:internal/timers:557:17) at processTimers (node:internal/timers:500:7)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!