we are able to connect Mongo DB atlas from our remote server from mongosh but when we are trying to connect from talend tool we are getting below error. even we tried with replica host in tmongodbinput component but does't works.
Exception in component tMongoDBInput_1 (RERUN_MONGO_GL_EXPORT_JOB_PRD_REVENUE_FIELDS)
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=pl-0-ap-southeast-1.o7dng.mongodb.net:1024, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]
at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:179)
at com.mongodb.internal.connection.MultiServerCluster.getDescription(MultiServerCluster.java:54)
at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:136)