Hi,
I have an issue with connection to the mongodb using python code. Appreciate if got any solution to this error. Had tried alot of options but did not work.
Error below:
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: Could not reach any servers in [(‘demo-db-0’, 27017)]. Replica set is configured with internal hostnames or IPs?, Timeout: 30s, Topology Description: <TopologyDescription id: 63c4cb5a9c09397560936c60, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription (‘demo-db-0’, 27017) server_type: Unknown, rtt: None, error=AutoReconnect(‘demo-db-0:27017: [Errno 11001] getaddrinfo failed’)>]>