We’re running an app on Compose’s MongoDB Classic but we’re getting this error:
MongoError: seed list contains no mongos proxies, replicaset connections requires the parameter replicaSet to be supplied in the URI or options object, mongodb://server:port/db?replicaSet=name
According to this article, adding a replicaSet to the OPLOG url should fix the issue but it doesn’t fix it for me. Did anyone else run into this problem?
For reference, this is how we’re setting our env variables for mongo url and mongo oplog url:
SET MONGO_URL=mongodb://user:password@mongolayerurl.com:port,mongolayerurl:port/dbname?replicaSet=set-string
SET MONGO_OPLOG_URL=mongodb://user:password@mongolayerurl.com:port,mongolayerurl:port/local?replicaSet=set-string