Intermittently getting MongoServerSelectionError error on my Next.js Vercel deployment

Hi @Adam_Romero,

Difficult to decisively say at the moment what the issue could be. To confirm from the Atlas perspective, have you checked your cluster at the time of these errors to see if there were any possible issues (restarts, resource exhaustion, etc)?

You could also try having another application outside of Vercel connecting to the same cluster to see if it generates the same error and the same time for troubleshooting purposes. This might help narrow down where / what the issue could be.

Regards,
Jason

1 Like