cayasso / mongo-oplog

Watch mongodb oplog in a simple way
381 stars 91 forks source link

MongoError: No more documents in tailed cursor #51

Closed ORESoftware closed 7 years ago

ORESoftware commented 7 years ago

I am getting this MongoError: No more documents in tailed cursor

Not sure what to do about it. I can't seem to capture it with

oplog.on('error')

the MongoError shows up as an uncaughtException. How can I prevent the error or trap the error? Seems like an unnecessary error..something like the stream ends if there are no more documents, but the stream should not end.

ORESoftware commented 7 years ago

Ok so I did my due diligence after the fact and found this:

https://github.com/cayasso/mongo-oplog/issues/44

will close