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

Mongodb Deno SRV connection not working. #27138

Open
vikashsharma opened this issue Nov 28, 2024 · 0 comments
Open

Mongodb Deno SRV connection not working. #27138

vikashsharma opened this issue Nov 28, 2024 · 0 comments
Labels
bug Something isn't working correctly node compat

Comments

@vikashsharma
Copy link

vikashsharma commented Nov 28, 2024

Version: Deno 2.0.* / canary

I am using windows and decided to switch from feathersjs to simple deno or hono+deno with mongoose/mongodb

Tried all possible options, changing deno versions or mongoose or mongdb.
It works on my IP (sometimes) but rest it doesnt work from any other IP.
Evfen my Atlas cloud Network is set to 0.0.0.0,
Connect well with Hono+Bun or Bun, or Nodejs or featherjs.

After spending 3 days and tried all possible solutions, I gave up and switched to bun for now. My project is getting delayed. I had high hopes from deno.

URI : mongodb+srv://:@cluster.rhaiu.mongodb.net/testdb

Latest error is around :

MongoDB connection failed: MongooseServerSelectionError: Server selection timed out after 5000 ms at _handleConnectionErrors (c:\home\git\...........) at NativeConnection.openUri (c:\home\git\...\node_modules\mongoose\lib\connection.js:860:11) at eventLoopTick (ext:core/01_core.js:214:9) at async connectDB (file:///C:/home/git/..../src/config/db.ts:76:5) at async startApp (file:///C:/home/git/..../main.ts:20:7) { message: "Server selection timed out after 5000 ms", reason: TopologyDescription { type: "ReplicaSetNoPrimary",

@littledivy littledivy added bug Something isn't working correctly node compat labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

No branches or pull requests

2 participants