Problem with Mongoose + auth
Hi i followed the mongoose example provided by denoland, but if my local database has authentication, mongoose not connect (it freeze on
connect
statemment)
example: https://github.com/denoland/examples/tree/main/with-mongoose
Note: same URI works with node + mongoose5 Replies
is the mongo uri provided to
mongoose.connect
correct?right @spam.wizrad
what kind of authentication does your local mongodb use?
Default, i just set MONGO_INITDB_ROOT_USERNAME and MONGO_INITDB_ROOTPASSWORD
on my docker image as documentation says
https://hub.docker.com//mongo
if i try to connect to mongo atlas with SCRAM auth, give me another problem @spam.wizrad
Uncaught MongoAPIError: Server record does not share hostname with parent URI
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View