extvision

extvision

Connecting MongoDB Serverless instance with mongodb_driver (https://hex.pm/packages/mongodb_driver)

Hi !!,

I have question about MongoDB connection,.. thanks in advance

I failed to connect to the MongoDB Cluod Serverless instance with mongodb-driver deps.

When I try to connect to the instance using URL ,
Mongo.start_link(url: “mongodb+srv://DB:PW@pigro.baybc.mongodb.net/test”)

it shows the warning and error message ..


15:07:32.169 [warning] Description: ‘Authenticity is not established by certificate path validation’
Reason: ‘Option {verify, verify_peer} and cacertfile/cacerts is missing’

15:07:32.344 [error] Mongo.MongoDBConnection (pid<0.241.0>) failed to connect: ** (Mongo.Error) The server is being accessed through a load balancer, but this driver does not have load balancing enabled 354


When I tried to connect using the tool “MongoDB Compass”, there is no problem..

Is there any solution to solve it..??

Thanks,

First Post!

amarandon

amarandon

I don’t know anything about this library but are you sure you’re using the exact same URL that you’re using with MongoDB Compass? If so do you have the latest version of mongodb_driver? (The changelog hints that this type of URL hasn’t always been supported).

Where Next?

Popular in Questions Top

greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs &amp; Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 130579 1222
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement