cloudant / sabisu

A sensu web UI powered by Cloudant
https://sabisuapp.org
Apache License 2.0
31 stars 6 forks source link

empty reply from server on clear_recovered=true #17

Open cbarraford opened 10 years ago

cbarraford commented 10 years ago

When hitting the stale events api, and clear_recovered=true, if seems there is a timeout and the response is "empty reply from server". On the server side, everything seems to work ok though and recovered events are cleared. You prob need a high volume of events to clear to reproduce this problem.

curl 127.0.0.1:8080/api/events/stale?clear_recovered=true
curl: (52) Empty reply from server

One suggestion is to use bulk delete to delete the docs instead of looping through them one by one.