mongo icon indicating copy to clipboard operation
mongo copied to clipboard

feat: implement Load Balancer

Open justinmchase opened this issue 3 years ago • 1 comments

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

justinmchase avatar Jan 27 '22 07:01 justinmchase

Load Balancer is not implemented yet

erfanium avatar Jan 28 '22 05:01 erfanium