Connect Failed :connect failed to replica

I have tried everything reading for the forum answers yet I am unable to connect to the MongoDB.It is fetching the below error
2021-02-25T08:44:43.459+0000 E QUERY [js] Error: connect failed to replica set atlas-h1ukvt-shard-0/,, :

Kindly help

Please show the command you ran or screenshot
I can connect to your cluster