How can I solve the Mongodb atlas connection error in nodejs?
I'm getting below error while try to connect mongodb atlas database with nodejs mongoose:Error: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying...
View ArticleWhat do the timeline annotation lines actually represent in the mongodb atlas...
I'm currently investigating a mongo incident in our Atlas cluster. I am trying to figure out why it decided to upgrade for a period of time. I know that something happened around the memory so I've...
View ArticleMongoClient.connect fails, but does not throw an error
try { if (!conn) { console.log("Attempting to Connect to Atlas"); conn = await MongoClient.connect(process.env.MONGO_URL, { useNewUrlParser: true, useUnifiedTopology: true, });...
View ArticleMongoDB atlas connection fails with error MongoServerSelectionError:...
I have set up a mongodb Atlas free tier cluster. When I try to connect to it with node js, it throws an error. I have white listed my IP both manually and with select current. I have also tried adding...
View ArticleBest Approach to Handle Unsharded Collections in a MongoDB Global Write Cluster?
Thanks for taking the time to look into my issue.I currently have a MongoDB Atlas global write cluster with three region-specific shards in UK, US, and HK. The unsharded collections are located...
View ArticleMongoTimeoutError: Server selection timed out after 10000 ms - disconnected...
I use docker-compose on aws ec2 to build node.js express to connect to mongodb atlas.I have created a connection whitelist and can connect smoothly.But, the db connection will be disconnected suddenly,...
View ArticleUnderstanding MongoDB Atlas Replica Set Pricing [closed]
I am trying to understand the pricing structure of MongoDB Atlas, especially when it comes to the default replica set configuration.If I enable the default replica set (which includes 3 nodes), does...
View ArticleHow to fix 'Error: querySrv EREFUSED' when connecting to MongoDB Atlas?
I am new to MongoDB 4.0.6 and tried to implement it into my website using Node/Express.js, but when I try to connect to...
View ArticleMongoTopologyClosedError: Topology is closed
In my web application, it works most of the time, but occasionally I get a 500 error, and sometimes I don’t.It works completle in local server, but the preblem is in the website that use MongoDB...
View Article"Allow access from anywhere" MongoDB Atlas
I'm building a website, and am using MongoDB Atlas for my database. In the MongoDB Network Access section, I have to specify an IP address to connect from in order to establish the database connection,...
View ArticleMongoDB Atlas Local Docker Vector Search always in building status
I am trying to run mongodb atlas locally and trying to index data but the vector search index is always in building mode:Following is the docker compose and error screenshot attached.name:...
View Article"error": "rule not matched for function \"data/v1/endpoint in mongoDB Data api
{"error": "rule not matched for function \"data/v1/insertOne\"","error_code": "FunctionExecutionError","link":...
View Articlemongodb atlas online archive custom criteria
I'm trying to create a custom criteria query, the issue is that mongo requires it to be a json document and it then translate it to a queryi want this to be the query db.reports.find({ "time_lo_res": {...
View ArticleMongoDB Atlas Device Sync (Realm) with expo in 2025
I’m migrating my existing react-native project into Expo. I am using Realm 11 and @realm/react 0.4.2. It will compile, but gives me a runtime error: ‘Missing Realm Constructor, Did you run...
View ArticleCan't display user data from database
I want to get data from database and display it in html code through <%= %> tag.// index.jsconst express = require('express');const router = express.Router();const { ensureAuthenticated } =...
View ArticleMongodb atlas connection failed
I have created a database named priceDatabase in mongodb atlas. Also I have created a user with usename 'admin' and password 'admin'. I am trying to connect to my node js application to the mongodb...
View ArticleHow to Create a Partial Atlas Search Index in MongoDB Based on a Filter?
I am using MongoDB Atlas Search and want to create a partial search index where:Only specific documents are indexed based on a field condition (e.g., status: "active").Only specific fields are indexed...
View Articleconnect with mongodb atlas and choode render for hosting i got below error...
const timeoutError = new error_1.MongoServerSelectionError(`Server selection timed out after ${timeout?.duration} ms`, this.description); ^MongoServerSelectionError: 38A70000:error:0A000438:SSL...
View ArticleMongoDB insertOne Replaces Documents Instead of Appending in Next.js API Route
I'm working on a Next.js API route that inserts user data into a MongoDB collection. However, whenever I insert a new document, it seems to replace all existing documents in the collection instead of...
View ArticleMongo atlas free tier - indexes are taking up space even after entities removal
I prepared a quick POC to test whether monngo will be sufficient for what I need. In short - I very frequently do a lot of bulk writes to a collection and I very often remove stuff from that...
View Article