typesense-mongodb
typesense-mongodb copied to clipboard
MongoDb Topology is closed error
Description
I installed typesense and typesense-mongodb
typesense-mongodb cli gives an error below.
UnhandledPromiseRejectionWarning: MongoError: Topology is closed, please connect
Steps to reproduce
MongoDB and typesense-mongodb installed on windows and typesense installed on ubuntu (192.168.1.71).
I wrote below command in terminal
typesense-mongodb --mongo-collection=test --mongo-database=test --typesense-collection=log --mongo-url=mongodb://localhost:27017/?replicaSet=rs0 --typesense-url=http://192.168.1.71:8108 --typesense-api-key=xyz
It gives an error shown below picture.
How would I solve this problem?
@kutlayozger I just found this seemingly related comment suggesting that this could happen if the credentials provided are incorrect: https://github.com/Automattic/monk/issues/290#issuecomment-916135714