I have two clusters (one development, one production). The dev cluster is M30, v4.4.6; the prod cluster is M40, v4.4.6. They have the same network access rules.
I can connect to the dev cluster using Compass, and the MongoSH Beta terminal in Compass connects as well. The command prompt is “Enterprise atlas-xxxx-shard-0 [primary] >”.
I can also connect to the prod cluster using Compass, but the MongoSH Beta terminal in Compass does not connect. The command prompt is “>” and no command works; all give the following error message: “MongoServerSelectionError: Server selection timed out after 30000 ms”. I do not understand why Compass itself can connect to the database, but the mongo shell in Compass cannot.