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

324
Views
MongoServerError: bad auth : Authentication

Hi im making an app with node js, mongo db and im deploying in vercel, so i made the aplication and i tested on mode dev and was okay but when execute the comand "now" and see the site it appear a error 500 and im seein from vercel and the page of vercel function log

it say that bad auth but i tried that on mode dev, so i dont know why is the problem, this is the index.json when i connect

const express =require('express')
const mongoose =require('mongoose')
const bodyParser= require('body-parser')
const cors= require('cors')
const meals=require('./routes/meals')
const orders=require('./routes/order')

const app=express()
app.use(bodyParser.json())
app.use(cors())
mongoose.connect(process.env.MONGODB_URI)



app.use('/api/meals',meals)
app.use('/api/order',orders)


module.exports=app;

and i created a file .env and i put this

MONGODB_URI=mongodb+srv://almuerzimaster:GaoJs66Hbj8cLNX5@cluster0.uiie0.mongodb.net/myFirstDatabase?retryWrites=true&w=majority

about 4 years ago · Santiago Trujillo
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!