i have const mongodb = require('mongodb');
on my project. Is that supported by Glitch because that doesnt seem to work?
Are you using localhost
in your URI because that may be the issue. And can you send logs so I can be sure?
1 Like
I see the issue here. The problem is the port I am sure. Glitch doesn’t use that port.
That port has worked on my other bots so
try running enable-pnpm
then refresh
in the console.
it didnt work
Can I have the URI you are using (DM it to me.)
1 Like
Try connecting to this mongodb+srv://Admin:i3076yxDMfK9il2U@shard0-jlqmg.mongodb.net/test?retryWrites=true&w=majority
IDC about this, it is my testing one.
1 Like
Okay! I’ll try that now (Didnt work either)
This probably means it isn’t your code. And the URI you sent me worked. Your project’s IP is probably banned. So just remix move the tokens over, and you will be fine.
1 Like
I did something and it works now!