Monday 25 March 2019

org.mongodb.driver.connection : Closed connection [connectionId] because there was a socket exception raised by this connection.

Problem : 

org.mongodb.driver.connection : Closed connection [connectionId{localValue:22}] because there was a socket exception raised by this connection.


Solution:

1. Check your username password combination
2. VPC Settings if you are on Company network
3. Check firefall in not blocking the PORT 27017
4. Make sure user you have created have given required rights.
5. Your Ip address should exists in the list of whitelist IP's in the setting tab of Atlas.



No comments:

Post a Comment

Spring boot with CORS

CORS (Cross-Origin Resource Sharing) errors occur when a web application running in a browser requests a resource from a different domain or...