- Newest
- Most votes
- Most comments
The error message you're encountering, MongooseServerSelectionError: Server selection timed out after 30000ms,
indicates that your application is unable to establish a connection with the Amazon DocumentDB cluster. Here are a few steps you can take to troubleshoot and resolve this issue check that your network access configuration allows connections from your application's IP address. In AWS, this is managed through the security group associated with your DocumentDB instance. Also, check whether DocumentDB is placed with the proper VPC security group or check for connection string to confirm that you are using the right connection parameters specific to DocumentDB, such as ssl=true and replicaSet=rs0
if applicable, and finally consider increasing the timeout setting in your application to accommodate connections that might take longer due to network latency or other issues
Relevant content
- Accepted Answerasked a year ago
- asked 2 years ago
- asked 2 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 8 months ago