Trying to use mongodb but i get buffering timed out

https://replit.com/@AGuyThatLikesFurrys/Hecker-Discord-bots-test-real
Hi, i’ve been trying to use mongodb for my discord bot However i get

Error setting modlogs: MongooseError: Operation `modlogs.findOne()` buffering timed out after 10000ms
    at Timeout.<anonymous> (/home/runner/Hecker-Discord-bots-test-real/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:185:23)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

When i try to add/find a something in my DB, im farely new to mongodb.
i’ve been trying to find a solution for around 3-4 hours but i found noting so i’d ask here.
my mongodb is connected, i have provided some screenshots:

image

image

image

i aswell get it in some other code (ed.js and md.js in the repl)

Here is the mongodb secret (it is modified for obvious reasons):
mongodb+srv://TESTTEST:<password>@discordbotdb.<id>.mongodb.net/?retryWrites=true&w=majority

if the mongodb thing cannot issue cannot be resolved, i don’t mind using a other DB as long as it isn’t slow and has good security

if kill 1 in Shell fixes it:

and add your repl’s webview URL to https://uptimerobot.com (no status monitoring, but it’ll ping your repl).

1 Like

kill 1 doesn’t fix it, btw the repl i linked in this topic is not needed to run 24/7 as it is the testing version of the original discord that i own

i have found the solution

Hey @anon76001654. It’s great to hear that you’ve fixed your problem, but please provide an explanation to how you did, so that other people who have the same problem know the solution.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.