All Questions
50,195 questions
-2
votes
0
answers
20
views
I am getting mongoDB connection error in node js [duplicate]
I buliding my portfoilo website i am intigrate the mongodb url now i am getting this error
this is url and if i give with srv the new error appear
mongodb+srv://database_user:[email protected]....
2
votes
0
answers
108
views
MongoDB Partial Index still flagged as performance bottleneck for non-matching documents
I am working on a task for a high-load social media application. The collection posts has the following document structure:
JSON
{
"createdAt": "2022-01-26T10:29:43.000Z",
&...
1
vote
2
answers
94
views
Lambda processing SQS messages Race condition in Node.js
I’m processing webhook events using AWS Lambda + SQS, and I’m running into a race condition that causes duplicate processing, even with safeguards in place. I have tried adding unique index on orderId,...
Advice
0
votes
2
replies
77
views
is it ok to store user ssh_host , other details storing in db with encryption
I use node js , So i am creating a application for deployment with SSH or docker , for now in SSH , i do like
Asking inputs as ssh_host , ssh_user , remote path and ssh_key , however i use crypto ...
Best practices
0
votes
1
replies
58
views
DataGrid with remote operations
with remoteOperations enable grouping. supports all data types, keep some custome templates, header filters should format correctly
how to do this task using angular DevExtreme, node.js and mongodb
it ...
0
votes
0
answers
119
views
MongoDB Node driver heartbeat fails on replica set advertised host in Docker, while direct container connection is stable
I have a Node.js application using Mongoose against a single-node MongoDB replica set running in Docker.
Environment:
My application connects with a seed URI like this:
const dbURI = `mongodb://user:...
0
votes
0
answers
36
views
NestJS/ExpressJS MongoDB Atlas connection fails with querySrv ECONNREFUSED _mongodb._tcp unless DNS servers are manually set [duplicate]
I'm having trouble connecting my NestJS/Express application to MongoDB Atlas.
When attempting to connect, I repeatedly get the following error:
Error: querySrv ECONNREFUSED _mongodb._tcp.<cluster-...
0
votes
1
answer
91
views
Handling concurrent task updates in a real-time Kanban board using Socket.IO without UI flickering
Problem
I need to implement a concurrency handling strategy.
If two users try to move or edit the same task at exactly the same time, I want to prevent:
Data corruption
UI flickering
Tasks jumping ...
0
votes
0
answers
129
views
MongoDB Atlas connection error in Node.js: querySrv ECONNREFUSED _mongodb._tcp.cluster0
I am building a MERN application and trying to connect my Node.js backend to MongoDB Atlas using Mongoose.
However, when I start my server, I get the following error:
Error: querySrv ECONNREFUSED ...
0
votes
2
answers
114
views
MongoDB Atlas connection error: querySrv ECONNREFUSED in Node.js
I'm building a nodejs app with mongoDB Atlas but when I run my server it throws a connection error the server starts on port 5000 but MongoDB fails to connect.
Here is the error I'm getting:
Error in ...
1
vote
1
answer
80
views
TypeScript error when caching mongoose connection globally — Promise not assignable
I am trying to create a reusable MongoDB connection function using Mongoose in a Node.js / Next.js project with TypeScript.
To prevent multiple connections during hot reload, I am caching the ...
0
votes
1
answer
110
views
Mongoose querySrv ECONNREFUSED with Node v22.22.0 on Windows - Works on Render but fails locally
I'm facing a persistent connection issue with Mongoose and MongoDB Atlas ever since I updated/reinstalled Node.js to version v22.22.0. Interestingly, the exact same code works perfectly when deployed ...
0
votes
0
answers
53
views
Node.js handling PoolClearedOnNetworkError
I have a system that is subject to going to sleep, with a node.js based server running on it. The issue is that when this happens I will often run into a PoolClearedOnNetworkError error:
/Users/myuser/...
0
votes
2
answers
195
views
MongoDB Atlas connection fails with querySrv ECONNREFUSED from Node.js
I am trying to connect a Node.js backend to MongoDB Atlas using the official MongoDB driver, but the connection always fails with a DNS querySrv ECONNREFUSED error.
This happens for every cluster and ...
2
votes
1
answer
2k
views
MongoDb Connection failed : Error: querySrv ECONNREFUSED
MongoDb Connection failed : Error: querySrv ECONNREFUSED
How can I solve this error? My node v24.13.0 and mongoose 9.1.5 are the latest versions. Also I changed my network dns to Google's dns number ...
