incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad King" <brk...@gmail.com>
Subject Re: 500 server error posting a view
Date Tue, 10 Jun 2008 18:18:12 GMT
Chris: ah, yes I screwed up the URL, however I still get the 500 after
fixing this:

POST /product/_temp_view HTTP/1.0
Content-Type: application/json
Content-Length: 55
Host: d0002rptdb02:5984

{
  "map" : "function(doc) { emit(null, doc); } "
}

Different error though

HTTP/1.0 500 Internal Server Error
Server: inets/develop
Date: Tue, 10 Jun 2008 18:12:52 GMT
Cache-Control: no-cache
Pragma: no-cache
Expires: Tue, 10 Jun 2008 18:12:52 GMT
Connection: close
Content-Type: text/plain;charset=utf-8

{"error":"query_language_unknown","reason":"application\/json"}


Jan, this is the correct format for an ad-hoc view, no? the page you
linked me to is where I got the info.

BTW I can browse the database just fine with a web browser, and the
default query runs ok in a browser as well.

Thanks

On 6/10/08, Chris Anderson <jchris@grabb.it> wrote:
> Brad,
>
> It look like the url:
>
> > POST /product/_test_view HTTP/1.0
> >
>
> should be /product/_design/test_view (for a named view)
>
> or /product/_temp_view
>
> assuming your db name is product.
>
> Hope that helps.
>
> Chris
>
> --
> Chris Anderson
> http://jchris.mfdz.com
>

Mime
View raw message