Ah, having a reply-all problem. I have now in fact tried querying the list
function looking like this:
function (head,req) {
provides("html", function (){
return "blah";
});
return "foo";
}
using jquery, with identical results:
[error] [<0.5065.9>] function_clause error in HTTP request
[info] [<0.5065.9>] Stacktrace:
[{mochiweb_util,parse_qs_key,[undefined,[]]},
{mochiweb_util,parse_qs,2},
{couch_httpd_external,json_req_obj,3},
{couch_httpd_show,start_list_resp,6},
{couch_httpd_show,finish_list,7},
{couch_query_servers,with_ddoc_proc,2},
{couch_httpd_db,do_db_req,2},
{couch_httpd,handle_request_int,5}]
And still, querying directly in the browser window or with curl gets me a
200 and the right result.