mongo icon indicating copy to clipboard operation
mongo copied to clipboard

Is this module working with AWS DocumentDB?

Open AfMyte opened this issue 2 years ago • 1 comments

Good morning folks, I am trying to use this module with DocumentDB but I always receive this error:

Error: MongoError: "Connection failed: Cannot read properties of undefined (reading 'includes')" at MongoClient.connect (file:///app/vendor/deno.land/x/[email protected]/src/client.ts:46:13) at connect (file:///app/src/utils/connection.js:15:18) at session (file:///app/src/controllers/session.js:10:22) at eventLoopTick (ext:core/01_core.js:183:11) at async dispatch (file:///app/vendor/deno.land/x/[email protected]/middleware.ts:80:7) at async dispatch (file:///app/vendor/deno.land/x/[email protected]/middleware.ts:80:7) at async dispatch (file:///app/vendor/deno.land/x/[email protected]/middleware.ts:80:7) at async cors (file:///app/vendor/deno.land/x/[email protected]/src/cors.ts:204:5) at async middleware (file:///app/vendor/deno.land/x/[email protected]/src/cors.ts:243:5) at async dispatch (file:///app/vendor/deno.land/x/[email protected]/middleware.ts:80:7)

That I think it is coming from here https://github.com/denodrivers/mongo/blob/main/src/utils/uri.ts#L42

AfMyte avatar Sep 26 '23 09:09 AfMyte

@AfMyte I have never used AWS DocumentDB. You may test npm:mongodb package with Deno npm compat mode.

erfanium avatar Sep 27 '23 07:09 erfanium