1,564
questions
0
votes
0
answers
22
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 ...
1
vote
0
answers
25
views
How to adjust mongoose query for Atlas Search?
This is my Index Definition in Monodb Atlas Search.
{
"mappings": {
"dynamic": false,
"fields": {
"title": {
"type": "...
0
votes
0
answers
21
views
No suitable servers found (serverSelectionTryOnce set): [TLS handshake failed: error:14077438
I am using connection string from the mongodb atlas,
if i use connection string in local environment it is working fine, but in production server it is trowing an error.
No suitable servers found (...
-1
votes
1
answer
22
views
How to pause a mongodbatlas cluster programmatically via python, either using an API or python package?
I want to pause a Mongodb-Atlas cluster automatically. How can I do that?
Through Atlas Cli, we have this command
atlas clusters pause [options]
But I want to run this command via python.
Please tell ...
1
vote
1
answer
56
views
how to calculate embedding using openAI api for MongoDB vector search
I am trying to follow the example at https://www.mongodb.com/docs/atlas/atlas-vector-search/tutorials/vector-search-tutorial/
It mentioned that the search vector was based on string "historical ...
0
votes
0
answers
23
views
Connecting PowerBI to MongoDB Atlas
Is it possible to connect PowerBI to MongoDB Atlas (cloud) without on-premises data gateway?
The semantic model is created with PowerBI Desktop with "MongoDB Atlas SQL" data source, which ...
0
votes
1
answer
37
views
MongoDB online archival ObjectId vs datefield
I'm trying to archive data which is older than 4 months in a mongodb collection. There are existing documents in the collection.
As per mongodb, for standard collections we can either use date fields ...
0
votes
0
answers
31
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 ...
0
votes
1
answer
16
views
Trouble when trying to connect MongoDB Atlas with Flask-Pymongo
I used to have a mongodb server on my computer and everything worked just fine. When I tried to deploy the server to MongoDB atlas it broke.
from flask import Flask
from flask_pymongo import PyMongo
...
0
votes
0
answers
16
views
How to specify aggregation options (allowDiskUse:true) through Data API (over REST calls) offered by MongoDB Atlas
How to specify aggregation options (allowDiskUse:true) while making aggregation query through Data API (over REST calls) offered by MongoDB Atlas?
I looked at the documentation here, but could not ...
0
votes
0
answers
28
views
Schema validation failed in Realm/Atlas due to an unknown type
I have a Kotlin Multiplatform app that I'm trying to get to work with Realm/Atlas. When I try to do a Realm.open(it) it says:
IllegalStateException@29576} "java.lang.IllegalStateException:
[...
0
votes
0
answers
44
views
How to Optimize MongoDB Aggregation Pipeline with Keyword Search and Sorting for Large Dataset?
I am working on a Laravel project that uses MongoDB via MongoDB Atlas. I have a collection with millions of documents, and I am running a complex search query that includes keyword search, sorting, ...
1
vote
0
answers
33
views
cant reach atlas mongo service from docker
i have a rest api golang app.
with go run . everything works fine, no error.
then, I dockerize it on localhost. everything seems fine, but endpoints that are connecting to mongo are not working and I ...
0
votes
0
answers
26
views
Attempt to delete a document on Mongodb Atlas times out and returns an error
I am using Postman to test deleting a document on Mongodb atlas in a NextJs 14.2.4 application using the api router. The problem is that my delete methods time out and the document is not deleted. ...
1
vote
1
answer
70
views
Unresolved reference after try/catch added
I have the following code I'm trying to debug and want to add a try/catch block to see why it is crashing. When I add that though, it gives me an unresolved reference a few lines down, as noted in the ...
0
votes
1
answer
28
views
MongoDB Atlas CMD_NOT_ALLOWED: grantRolesToUser and dropDatabase Permissions Issue
I am encountering issues with MongoDB Atlas permissions while trying to manage user roles and perform administrative actions. Specifically, I am facing the following errors:
MongoServerError[...
0
votes
0
answers
38
views
Local atlas deployment raise "Get "https://production.cloudflare.docker.com ... dial tcp 157.240.10.36:443: i/o timeout" error
I use atlas deployments setup for local atlas devlopment,
It shows the following message:
Creating your cluster local6606 [this might take several minutes]
1/3: Starting your local environment…
2/3: ...
0
votes
0
answers
48
views
Returning all documents in MongoDB Atlas Vector Search
I have created an MongoDB atlas vector index LocationSemanticSearch based on location.
my api file
import base64
# import io
import os
from flask import Blueprint, jsonify, request
# from PIL ...
0
votes
0
answers
16
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 ...
0
votes
0
answers
12
views
What is RTT connection and monitoring connection in atlas?
I am using this documentation to calculate the number of connections my service will have:
docs/manual/tutorial/connection-pool-performance-tuning
instances of the python application that connects to ...
0
votes
0
answers
37
views
How to do forever anonymous authentication with realm?
I'm trying to build an "offline first" react native app. Basically the user can use the app without signing up, but can later decide to sign up to sync data across all devices.
I went for ...
0
votes
0
answers
49
views
sorting behavior and sorting sequence for mongodb
Does MongoDB use a different sort sequence order when sorting within a $search operation compared to a normal sort operation?
case 1:
db.collection.aggregate([{
$search: {
index: "...
0
votes
0
answers
97
views
Why does the $search aggregation make every other step so much slower? (v7.0.11)
I was experimenting with Atlas Search in MongoDB and I found a strange behavior.
Consider a collection of 100000 documents that look like this:
{
_id: "1",
description: "Lorem Ipsum&...
0
votes
0
answers
64
views
Configure IRSA to access mongodb cluster from EKS pod
I'm trying to setup a IRSA(Iam Role for Service Account) in order to acces mongodb cluster from EKS cluster.
The IRSA will then be attached to my EKS pod.(The goal is to setup passwordless ...
1
vote
1
answer
147
views
"Client attempted a write that is not allowed" MongoDB Atlas Device Realm Flex Sync Database
I am developing an iOS app with Realm and MongoDB Atlas. I never used Atlas before so this is a very interesting learning process. Atlas has a huge learning curve, and i am thankful i figure out ...
0
votes
0
answers
42
views
Atlas Search C# patterns for building search query dynamically
I’m working on an application which has ONE search input value (one search text box) and it should be able to perform the following type of searches.
Normal text search
Phrase search
Logical AND/OR
...
0
votes
0
answers
69
views
Forward Mongo Atlas Log to AWS Cloudwatch
I have a database on MongoDB Atlas and I need to forward the Atlas logs to my AWS Cloudwatch
I tried using the Atlas's Log Forwarder but it only has two options to send log to either collections or to ...
0
votes
1
answer
63
views
NestJS -> ERROR [MongooseModule] Unable to connect to the database with atlas connection
My application was working fine and connect with mongodb atlas successful too.
I didn't do any updates to my codes or changes to db, but somehow when I am starting my application locally again somehow ...
0
votes
0
answers
67
views
Modifying kafka mongodb connector for deletion operation
I am going to make 3 db of atlas consist of 1 source and 2 sink and make cdc with all changes. However, even though I tried all the properties on the Internet, when I insert and change the document on ...
0
votes
0
answers
32
views
MongoDB C driver asks to connect a smart card reader when trying to ping atlas database?
When trying to ping MongoDB database though the C driver api, it asks to connect Smart Card Reader?
The auth method used is SCRAM. I copied the connection string from MongoDB site and changed username ...
0
votes
1
answer
89
views
Unable to connect mongodb cluster to the mongodb connector in elastic search
I am following this guide to try and sync my mongodb cluster to elastic search. I have done all the steps as specified by the guide. I have added the 0.0.0.0/0 IP address to the IP Access List in the ...
0
votes
1
answer
225
views
PlanExecutor error caused by embedding index not indexed as knnVector
I have an ML model written in torch which produces an embedding of size 512.
I wrote a custom script utilizing the model and sending the embedding to the collection (which is empty).
class ...
0
votes
1
answer
24
views
pipeline with only simple $lookup stage automatically unwinds the data in the root place without using $unwind in pymongo python, is it possible?
I have two collections "users" and "persons", the "users" collection has an ObjectId of the "persons" collection ("person_id: "ObjectId("...
-1
votes
1
answer
73
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 ...
1
vote
0
answers
41
views
Access MongoDB Atlas from Bitbucket Pipelines build environments
I am trying to do some CRUD MongoDB operations from bitbucket pipelines. I have a Dedicated MongoDB cluster hosted in MongoDB Atlas AWS Setup. The problem is I am not able to connect to the cluster ...
1
vote
0
answers
133
views
Trouble with prefilters in MongoDB Atlas and Langchain: 'Path needs to be indexed as token' error
How do I use prefilters with langchain and mongodb atlas?
Here's my example models:
class Question(Document):
content = StringField(required=True)
class ResponseFragment(Document):
question = ...
0
votes
0
answers
18
views
I am building a back-end using Express.js and mongo (mongoose) and hosted in mongo atlas [duplicate]
When I run the command npm start I got this problem logged in the console:
(node:17724) [DEP0170] DeprecationWarning: The URL
mongodb://chafik:@ac-i0d1tt9-shard-00-00.t8t0l7l.mongodb.net:27017,ac-...
0
votes
1
answer
58
views
Realm Swift: Adding an Index to an Existent Property
I have an app that uses the Realm Swift SDK and is synced to the cloud via MongoDB Atlas Device Sync. It has 900,000 model objects like this in the database:
final class Foo: Object
{
@Persisted ...
0
votes
0
answers
36
views
atlas mongodb search with highlights
am writing to report an issue I encountered while using the text search feature in MongoDB. Specifically, I am facing challenges with extracting and aggregating highlighted text from nested fields in ...
0
votes
0
answers
23
views
Configuring Atlas MongoDB Change Stream to Sync MongoDB and Elasticsearch: Does it Make Sense to Use Both?
Description:
I'm working on an application that uses Kafka as middleware for message passing, Elasticsearch for advanced search, and currently evaluating integrating MongoDB as the primary database. ...
0
votes
1
answer
32
views
Does MongoDB Realm allow queries that only return some fields (projections)?
MongoDB's python sdk "PyMongo" allows for "projections" where only the specified fields are returned from an object. Is it possible to do this in Realm? I'm working on the ...
0
votes
0
answers
27
views
Why is atlas search not processing numbers?
I want to use MongoDB Atlas search to search in my app. I have an index called vehicle. It is not processing any number. I don't know why. I have looked through a few of the questions here but I didn'...
0
votes
0
answers
48
views
Multiple JWT URI's - Custom JWT Authentication [MongoDB Atlas]
I’ve been using Custom JWT authentication with a google tokenId, and it worked just fine so far. However I also need to add one more authentication provider (Firebase/Github). And when I fetch that ...
0
votes
0
answers
56
views
Secure mongodb atlas connection with IAM role and access the secure connection from a particular Elstic BeanStalk environment in AWS
How to secure mongodb atlas connection with IAM role and access the secure connection from a particular Elstic BeanStalk environment in AWS?
I deployed the project in aws ebs and I want to secure ...
0
votes
1
answer
255
views
Cannot Connect to MongoDB Atlas from GCP Cloud Run Instance
I followed this guide to creating a static outbound IP and attaching it to the instance. I have confirmed that the outbound IP is correctly setup and that outbound requests are from that IP by using ...
0
votes
0
answers
44
views
FUNCTION_INVOCATION_TIMEOUT: Error occuring while logging in with vercel deployment for NextJS project
I am working on a project using NextJS with app router and MongoDB Atlas which included authentication and i am using next auth for the same. The code is working completely okay for the local host but ...
0
votes
0
answers
23
views
Trouble Fetching Data from MongoDB Atlas in Full Stack Blog Deployed on Vercel and Netlify
I've developed a full-stack blog website as part of my learning journey in web development. I'm relatively new to this field. The website includes an admin panel where admins can manage blog posts by ...
0
votes
0
answers
31
views
Index not getting applied while $lookup for one of my query but for others it's getting applied. Not able to find out the mistake i am doing
Index not getting applied while $lookup (Customers lookup in my query, _id index is not getting applied) for one of my query but for other query it’s getting applied.
Below is the plan details which ...
0
votes
0
answers
25
views
MERN Stack on Render Issues "Cannot GET /" error
Ive uploaded my front end as a static site on Render and my backend as a web service.
I am getting an error when opening the backend as "Cannot GET /" so when I try to use my react app there ...
0
votes
1
answer
30
views
mongo atlas model is present but the documents are not getting created
i have started using next js lately and i'm new backend technologies , i have established the connection with monogdb atlas using moongose which works as expected but the post request date which is ...