Intermittent Mongoose cannot connect to any servers in Atlas cluster error
I am aware that other similar questions exist on this forum. My issue is intermittent and generally only occurs after the function has been idle for some time.
(Vercel/ MongoDB): Failed to connect with the database: querySrv ETIMEOUT
I can run my ExpressJS API locally using the “vercel dev” command, but when I try to deploy it (“vercel” command) I get this error: “Failed to connect with the database: querySrv ETIMEOUT _mongodb._tcp.cluster0.ibujag1.mongodb.net”