I'm facing this error while connecting with the compass with atlas

You need to add your IP to the Atlas access list. Try this and if the error persists, let us know here.