Ekliptor / WolfBot

Crypto currency trading bot written in TypeScript for NodeJS
https://wolfbot.org
GNU Affero General Public License v3.0
710 stars 215 forks source link

Issues with MongoUrl #23

Closed wayjeeair closed 5 years ago

wayjeeair commented 5 years ago

Error connecting to MongoDB {"message":"no hostname or hostnames provided in connection string","stack":"Error: no hostname or hostnames provided in connection string\n

my connection string is "mongodb+srv://(user):(password)@cluster0-qmy0b.mongodb.net/test?retryWrites=true&w=majority" which does not fit within the parameters of the url parser. Could you clarify what the MongoUrl requires?

I tried fitting in the host name by changing the connection string to "mongodb+srv://(user):(password)@cluster0-qmy0b.mongodb.net:27017/admin" but the same error message appears.

wayjeeair commented 5 years ago

resolved by restarting terminal app for the "node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser" function to recognise changes in the configLocal.ts file