Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda