D
Deno

help

Deno hanging when trying to connect with Mongoose

TTehCheese9/4/2023
When I try to connect to MongoDB using Mongoose the whole process just hangs until eventually timing out. I'm using a remote database with a user and password, and I know the URI is correct because I have used the same one on node.js projects. just
await mongoose.connect(`${env["MONGO_URI"]}`);
await mongoose.connect(`${env["MONGO_URI"]}`);
And I know it's getting the URI from the env file, I logged it to console There's no errors, other than the timeout error.
error: Uncaught (in promise) MongooseServerSelectionError: connection timed out
at _handleConnectionErrors (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/mongoose@7.5.0/node_modules/mongoose/lib/connection.js:805:11)
at NativeConnection.openUri (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/mongoose@7.5.0/node_modules/mongoose/lib/connection.js:780:11)
at eventLoopTick (ext:core/01_core.js:197:13)
at async file:///C:/Users/che/Documents/GitHub/Guin/Main.ts:23:1
error: Uncaught (in promise) MongooseServerSelectionError: connection timed out
at _handleConnectionErrors (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/mongoose@7.5.0/node_modules/mongoose/lib/connection.js:805:11)
at NativeConnection.openUri (file:///C:/Users/che/Documents/GitHub/Guin/node_modules/.deno/mongoose@7.5.0/node_modules/mongoose/lib/connection.js:780:11)
at eventLoopTick (ext:core/01_core.js:197:13)
at async file:///C:/Users/che/Documents/GitHub/Guin/Main.ts:23:1
Llcasdev9/4/2023
cc @.bartlomieju
TTehCheese9/4/2023
reactiontothatinformation
Bbartlomieju9/5/2023
Which Deno version do you use @tehcheese ?
TTehCheese9/5/2023
The latest, I believe Let me check
TTehCheese9/5/2023
No description
Bbartlomieju9/6/2023
Thanks, could you please open an issue in the repo about this problem?
TTehCheese9/6/2023
Okay..
TTehCheese9/6/2023
GitHub
Deno incompatibility with Mongoose npm package · Issue #20391 · den...
deno 1.36.4 (release, x86_64-pc-windows-msvc) v8 11.6.189.12 typescript 5.1.6 import mongoose from "npm:mongoose"; await mongoose.connect("URI"); That's all my code, the ent...
Bbartlomieju9/6/2023
Thanks, we'll look into it!

Looking for more? Join the community!

Recommended Posts
Embeding Dino compiled code within rust (Tauri) code, inside main.rs during build compilation.Hi. Still not sure if this is question for Tauri community or Deno community, so I'll place on both DuckDB deno package broken & npm package segfaultingHas anyone had any luck using DuckDB with Deno? I've tried with the npm package with segfaults on a Get Deno working with ESLintHi! I'm trying out a Deno project and I want to get Deno TS Typing working with ESLint. I understanInstall issueI am triyng to instal Deno but i always get this error and I cant solve it. Help pls!LSP: Uncached or missing @types/node when importing node:processI'd like to understand better what's going on here in case it's a potential bug in node interop: ```Deno vs Node for writing a React component library.Hi all. I love Deno and what it does, but I need some help deciding if it is right for my small projrun code at the start of every hourI would like the most performant code pls.Denoflare scheduled workersCloudflare has a cronjob feature for running workers at a scheduled time. Wrangler has a flag wranglHow to make a function whose return type is inferred to be the same as an input function'sThis is what I got so far. ```ts type Context = { abc: string, def: boolean } /* HAVE TO Tfresh.gen.ts blankhey folks. I've been using fresh for a while as a hobbist. Recently started a new project using thCan extension state have fields that require passing lifetime?It is possible to pass bounds and parameters to the extension! macro but as far as I see it doesn't Limits for background tasksI was thinking of making a filter page for users of multible game cdns, like steam, epic games, and Compiled binary from Cross-Platform CLI example will not workGoing through https://deno.com/blog/build-cross-platform-cli and running the output file, I get ```SDeno Vite App CLI doesn't match Deploy DocsI hope this is the right channel for this. (Deno team is probably already aware of this, but postingthird party module not updating / releasingDear all, I have just added a github repo , https://github.com/jonasfrey/o_file__wav, added a webhoPossible error in Deno.renameI’ve noticed that `Deno.renameˋ does not actually throw a ˋDeno.errors.AlreadyExists` on Linux and BOutgoing connection over TLS (port 465) from the deno deployment is failingI am trying to send an email via Gmail SMTP. The code is trying to connect to smtp.gmail.com on portsetting module scope variable based on module import pathI have a big utilities file with many helper functions, mostly arround html parsing. Many of which tHow to import a npm package that relies on WasmI'm trying to import `npm:@biscuit-auth/biscuit-wasm@0.4.0` and I wrote the following script: ```TypDeno deploy --allow-write permission.I'm writing a small web app that uses tilia (https://deno.land/x/tilia@0.1.2) to manage a small json