mh1723
mh1723
Explore posts from servers
RRailway
Created by mh1723 on 11/13/2023 in #✋|help
setting up discord bot with mongodb Atlas
Hello All, Like many here I am new to all of this. Im setting a discord bot, I have it running on my windows laptop. I deployed from github when setting it up and created the env variables in railway. I am getting this error from railway log:
Failed to connect to MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
Failed to connect to MongoDB: MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"
My current token for is: "mongodb+srv://atlasinfo.mongodb.net/?retryWrites=true&w=majority" the atlasinfo is not what is actually in the token. I saw another post here about having to add all the ip's for railway to Atlas whitelist, which I did. Edit: I had also added 0.0.0.0 and no luck there.
17 replies