Skip to main content

All Questions

Tagged with
0 votes
1 answer
52 views

Can't display user data from database

I want to get data from database and display it in html code through <%= %> tag. // index.js const express = require('express'); const router = express.Router(); const { ensureAuthenticated } = ...
Stefan's user avatar
  • 1
1 vote
0 answers
33 views

MongoTimeoutError: Server selection timed out after 10000 ms - disconnected suddenly

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 ...
Finn's user avatar
  • 1,459
0 votes
1 answer
117 views

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 ...
sugnay patel's user avatar
0 votes
0 answers
29 views

How to create search index for an attribute and query it which has nested dynamic fields in mongoDB atlas search?

I want to create an index on qualityConfirmations attribute and query it. As qualityConfirmations has dynamic fields at the root level for eg. 228, 234, and inside that I need to query for "...
Pawan Kumar's user avatar
0 votes
0 answers
96 views

MongoDB Atlas cannot be connected from WSL2 Node js

I'm Using Ubuntu on WSL2. Following error is shown when i try to connect to mongoDB atlas using mongoose. It can connect from windows successfully but doesn't do so from WSL2. > [email protected] dev &...
yubint's user avatar
  • 1
0 votes
0 answers
22 views

i'm trying to fetch data from mongodb atlas collection and display it in react front end

I've made a server.js in my npx cra project that's connecting to atlas cluster and formatting the received data using a schema. The data is about solar generation data I've downloaded from kaggle and ...
Salil's user avatar
  • 31
0 votes
1 answer
46 views

weird error while trying to connect to mongodb connection string gotten from atlas

I am trying to connect to mongodb using mongoose and a connection string from MongoDB atlas but I keep getting the error below: TypeError: Cannot read properties of undefined (reading 'constructor') ...
danoseun's user avatar
0 votes
1 answer
115 views

MongoTopologyClosedError: 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 ...
Eprok's user avatar
  • 1
0 votes
0 answers
146 views

Issues Connecting to MongoDB Atlas Using Mongoose in Node.js

I'm having trouble connecting my Node.js application to MongoDB Atlas using Mongoose. Here are the details of the issue and what I've tried so far: Context: MongoDB Atlas URI (sanitized): mongodb+srv:/...
Celeste's user avatar
2 votes
2 answers
182 views

MongoDB Atlas connection error: MongooseServerSelectionError, despite IP whitelisted and successful mongosh/Compass connections

Issue: I'm working on a Node.js backend using MongoDB Atlas and Mongoose. The server is running fine on port 8080, but I'm getting the following error when trying to connect to the MongoDB cluster: ...
Kartik Gujjar 's user avatar
0 votes
0 answers
41 views

File encryption when downloaded from GCS using nodejs

I'm developing a files sharing app where one can easily upload and download files. The uploaded files are stored in a bucket on google cloud storage while the metadata are stored on atlas. The files ...
Shalom Kamokoue's user avatar
0 votes
0 answers
67 views

Error: querySrv EREFUSED _mongodb._tcp.cluster0.vzygb.mongodb.net while connecting to mongodb

I've tried everything using chatgpt and configuring it again. Creating a new project and then creating a cluster and then doing all the process again. But this error seems to be stuck there. what is ...
Vishal Aggarwal's user avatar
0 votes
0 answers
36 views

Getting "'crypto' module: error signing message" when attempting to send a message via a MongoDB server function

I am attempting to setup a trigger in my MongoDB cluster, that, when an object is updated, pushes out a notification to certain users. I have firebase-admin initialized properly, but am running into ...
Brian.Masse's user avatar
0 votes
0 answers
22 views

db to bigQuery from mongodb atlas

want to create a trigger in MongoDB Atlas that sends data directly to BigQuery via an HTTP request whenever a new document is added to my collection. I understand that I need to use JavaScript and do ...
Saleh Mehdiyev's user avatar
-1 votes
1 answer
122 views

I'm getting this error "URL scheme "mongodb+srv" is not supported."

In react.js I'm making a api call using post method but I'm getting error in the console. Here is my backend code const editNote = async (id, title, description, tag) => { //api call const ...
Vivek Rai's user avatar

15 30 50 per page
1
2 3 4 5
27