MongoServerSelectionError: connection timed out

When trying to use parse server with mongo on Windows I usually get the error: MongoServerSelectionError: connection timed out serveral times before I can connect. And then randomly it connects.

The funny thing is that I cant connec to mongo using mongo compass, for instance.

More details in the image bellow.

Has anyone ever faced something like that?

You can try to increase the timeout using ?connectTimeoutMS option on the end of your mongo uri.