Hi all, I have run into rather peculiar behavior where I am able to connect to Mongo using compass and mongosh (on remote machine) but attempting to connect programmatically (tested both NodeJS and Python) times out. Python just never returns and JS eventually throws some topology connection error. I’m using the exact same URL in my testing across the clients:
mongodb://sveltekit:<password>@<ip-address>:27017/?authSource=forager
It should be noted that this behavior began after I updated the config to include
replication:
replSetName: "rs0"
and ran the command rs.initiate()
.
I am absolutely baffled. Please let me know if there’s any additional information I can provide.