Ekliptor/WolfBot

Issues with MongoUrl

Closed this issue · 1 comments

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.

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