Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement Load Balancer #329

Open
justinmchase opened this issue Jan 27, 2022 · 1 comment
Open

feat: implement Load Balancer #329

justinmchase opened this issue Jan 27, 2022 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@justinmchase
Copy link
Contributor

justinmchase commented Jan 27, 2022

Using a non-serverless cluster it works just fine.

Example connection string:

mongodb+srv://admin:<password>@serverlessinstance0.57azg.mongodb.net/example?authMechanism=SCRAM-SHA-1

Error:

error: Uncaught (in promise) Error: MongoError: "Connection failed: MongoError: {"ok":0,"errmsg":"The server is being accessed through a load balancer, but this driver does not have load balancing enabled","code":354,"codeName":"LoadBalancerSupportMismatch"}"
throw new MongoDriverError(Connection failed: ${e.message || e});
^
at MongoClient.connect (https://deno.land/x/[email protected]/src/client.ts:48:13)
at async MongoService.init (file:///home/justin/code/example/src/services/mongo.service.ts:20:15)
at async initServices (file:///home/justin/code/example/src/services/mod.ts:17:3)
at async file:///home/justin/code/example/index.ts:9:18

@erfanium
Copy link
Member

Load Balancer is not implemented yet

@erfanium erfanium changed the title Connecting to a Mongo Atlas serverless cluster gives a LoadBalancerSupportMismatch error feat: implement Load Balancer Jan 28, 2022
@erfanium erfanium added enhancement New feature or request help wanted Extra attention is needed labels Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants