incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad King" <>
Subject 500 server error posting a view
Date Tue, 10 Jun 2008 18:01:26 GMT
I'm trying to create a simple ad-hoc view based on one of the wiki examples:

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

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

This returns a 500 server error. Response details:

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

{"error":"EXIT","reason":"{function_clause,\n    [{mod_couch,do,\n
\"\/product\/_test_view\",\"HTTP\/1.0\",\n              \"POST
\/product\/_test_view HTTP\/1.0\",\n
{\"content-type\",\"application\/json\"}],\n              \"{\\r\\n
\\\"map\\\" : \\\"function(doc) { emit(null, doc); }
\\\"\\r\\n}\\r\\n\",\n              false},\n
{mod_couch,do,1},\n     {httpd_response,traverse_modules,2},\n
{gen_server,handle_msg,5},\n     {proc_lib,init_p,5}]}"}

The server log says something about an unrecognized query language.
What am I doing wrong? The c# CouchBrowse application also returns a
500 for the default query, so I'm thinking its some kind of server
setup issue.


View raw message