Server Error....Mongodb

ServerSelectionTimeoutError: servername:27017: [Errno 11001] getaddrinfo failed

Post a screenshot of what you are doing that shows the issue you are having.

Most likely you do not have a machine with the host name servername on your network. So when you try to connect with mongo your DNS server does not find the IP address of the machine, that’s the meaning of getaddrinfo failed.

1 Like