Hey
I'm having an issue with MongoDB. It was working fine, but now I'm getting a timeout error. Do you guys have any idea why this might be happening?
Traceback (most recent call last):
File "/root/Loopify/main.py", line 57, in connect_db
await func.MONGO_DB.server_info()
File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1922, in server_info
self.admin.command(
File "/usr/local/lib/python3.10/dist-packages/pymongo/_csot.py", line 108, in csot_wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pymongo/database.py", line 893, in command
with self.__client._conn_for_reads(read_preference, session, operation=command_name) as (
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1369, in _conn_for_reads
server = self._select_server(read_preference, session, operation)
File "/usr/local/lib/python3.10/dist-packages/pymongo/mongo_client.py", line 1316, in _select_server
server = topology.select_server(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 368, in select_server
server = self._select_server(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 346, in _select_server
servers = self.select_servers(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 253, in select_servers
server_descriptions = self._select_servers_loop(
File "/usr/local/lib/python3.10/dist-packages/pymongo/topology.py", line 303, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 66735aaceb3a1e52e3433b6d, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-00.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-01.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net', 27017) server_type: Unknown, rtt: None, error=NetworkTimeout('ac-delo9tk-shard-00-02.vxyxyw3.mongodb.net:27017: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
