typesense-mongodb icon indicating copy to clipboard operation
typesense-mongodb copied to clipboard

MongoDb Topology is closed error

Open kutlayozger opened this issue 2 years ago • 1 comments

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. image

How would I solve this problem?

kutlayozger avatar Apr 22 '22 12:04 kutlayozger

@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

jasonbosco avatar Apr 23 '22 01:04 jasonbosco