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/sandbox-shard-00-02.9jjvz.mongodb.net.:27017,sandbox-shard-00-00.9jjvz.mongodb.net.:27017,sandbox-shard-00-01.9jjvz.mongodb.net.:27017 :
connect@src/mongo/shell/mongo.js:328:13

Kindly help

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