orlandovald / webflux-twitter-demo

A demo Spring Webflux application that connects to Twitter's streaming API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working anymore

patrickdronk opened this issue · comments

Hi,

I wanted to use your example but it's not working anymore.
this is the error logged by spring:
tailable cursor requested on non capped collection' on server localhost:27017

In order to support a tailable cursor (in order to read records as they come) in a Mongodb collection you need to create it with the capped attribute set to true, just create the collection manually with something similar to the below command inside the mongo shell (delete the collection if it's already created),

db.createCollection("tweets", {capped:true, max:1500, size:1000000})

That should make that error go away, let me know otherwise.