You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by bryan rasmussen <ra...@gmail.com> on 2011/09/30 15:45:01 UTC
view_cleanup error
Hi,
I do the following:
curl -X POST http://127.0.0.1:5984/dbname/_view_cleanup
And I get back
{"error":"bad_request","reason":"Content-type must be application/json"}
I thought maybe it had to be that _view was actually the name of my
view that I wanted to cleanup
so _myview_cleanup
unfortunately that raised an error that Referer header required...
how do I cleanup my views.
Re: view_cleanup error
Posted by Robert Newson <rn...@apache.org>.
Add;
-Hcontent-type:application/json
B.
On 30 September 2011 14:45, bryan rasmussen <ra...@gmail.com> wrote:
> Hi,
>
> I do the following:
>
> curl -X POST http://127.0.0.1:5984/dbname/_view_cleanup
>
> And I get back
> {"error":"bad_request","reason":"Content-type must be application/json"}
>
> I thought maybe it had to be that _view was actually the name of my
> view that I wanted to cleanup
> so _myview_cleanup
>
> unfortunately that raised an error that Referer header required...
>
> how do I cleanup my views.
>