Closed Vamshikrishnaredd closed 3 days ago
Your external ip changes every couple of hours. This error indicates that Azure Cosmos DB for MongoDB doesn't know your ip address hence the connection times out trying to connect.
please go to the networking page and add the ip again.
I'm still getting same error. Could you please help me out
I added my ip address while establishing the connection with cosmos db, im getting this error.
ServerSelectionTimeoutError: c.openai.mongocluster.cosmos.azure.com:10260: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 668ec79a9b6681b1b76ebffe, topology_type: Unknown, servers: [<ServerDescription ('c.openai.mongocluster.cosmos.azure.com', 10260) server_type: Unknown, rtt: None, error=NetworkTimeout('c.openai.mongocluster.cosmos.azure.com:10260: timed out (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]>
This is the code.