I’m following the golang driver’s quick start guide:
The connection string has the format:
mongodb://:@hostname:port/?authMechanism=SCRAM-SHA-1&authSource=<db_name>
I’ve tried a couple of things and I keep getting the same error:
No connection could be made because the target machine actively refused it
Looking through the codebase for the driver, I can see it’s errWindowsTLSConnectionRefused
As a sanity check, I used the same connection string using the node.js driver, and it successfully connected and was able to insert a document. I also used it in compass and it works as expected.
The mongodb version is 5 and I do not have control over that db.
Any pointers?