DocumentDb connection on Mac OS system

0

I would like to know what to do to successfully connect to my documentDb using the mongodb atlas. I have properly linked the global-bundle.pem file to the uri string every time I run my code I keep getting connection timed out error

Enter image description here

질문됨 한 달 전195회 조회
1개 답변
0

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

profile picture
답변함 15일 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠