skip to Main Content

Mongodb – This Serverless Function has timed out

I create a chat app using mern stack. After deploy server in vercel. but it is not work. there is a error in vercel log. Legacy server listening... MongoServerError: bad auth : authentication failed at Connection.onMessage (/var/task/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:207:30) at MessageStream.<anonymous> (/var/task/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:60:60)…

VIEW QUESTION

Timeout when Connecting to MongoDB Atlas from Azure App Service

I'm trying to connect to my MongoDB database using the following setup: public ReplybotServiceLayer(MongoDbSettings databaseSettings) { var connectionString = $"mongodb+srv://{databaseSettings.User}:{databaseSettings.Password}@{databaseSettings.Cluster}.mongodb.net/{DatabaseName}?w=majority&connect=replicaSet"; var client = new MongoClient(connectionString); var database = client.GetDatabase(DatabaseName); _guildResponsesCollection = database.GetCollection<GuildResponseEntity>("responses"); _guildConfigurationsCollection = database.GetCollection<GuildConfigurationEntity>("configuration"); } public async Task<IList<TriggerResponse>?> GetResponsesForGuild(ulong…

VIEW QUESTION
Back To Top
Search