pymongo.errors.ServerSelectionTimeoutError with atlas even when added to network access

NetworkTimeout('cluster0-shard-00-01.whzdc.mongodb.net:27017: timed out')

This error means that pymongo timed out while waiting for a response from the remote server. Usually this means there is a network issue between your machine and the database.

  1. Could you provide the output to pip list?
  2. Could post the output of ping cluster0-shard-00-01.whzdc.mongodb.net?
  3. Could you try connecting with the mongodb shell?
2 Likes