I've deployed my own MongoDB cluster. I've a running Meteor application which is running with Phusion Passenger on the top of Nginx. I'm getting following error after updating the connection string in Nginx configuration file:
/<app_directory>/bundle/programs/server/node_modules/fibers/future.js:280
throw(ex);
^
Error: missing delimiting slash between hosts and options
at module.exports (/<app_directory>bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/url_parser.js:37:11)
at connect (/<app_directory>/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:289:16)
at Function.MongoClient.connect (/<app_directory>/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/lib/mongo_client.js:113:3)
at new MongoConnection (packages/mongo/mongo_driver.js:175:11)
at new MongoInternals.RemoteCollectionDriver (packages/mongo/remote_collection_driver.js:4:16)
at Object.<anonymous> (packages/mongo/remote_collection_driver.js:38:10)
at Object.defaultRemoteCollectionDriver (packages/underscore.js:784:19)
at new Mongo.Collection (packages/mongo/collection.js:99:40)
at AccountsServer.AccountsCommon (packages/accounts-base/accounts_common.js:23:18)
at new AccountsServer (packages/accounts-base/accounts_server.js:18:5)
The application was running fine when the connection string was in following format previously:
passenger_env_var MONGO_URL mongodb://db_user:db_password@host_name:port_no/db_name;
But it starts showing error when I try to connect to mu mongoDB cluster by updating connection string in following way:
passenger_env_var MONGO_URL mongodb://db_user:'password_with_special_character'@host1_name:port_no,host2_name:port_no/db_name?replicaSet=replica_set_name;
Is there anything wrong in the connection string or any other problem?