--- Revision None +++ Revision 633938376665 @@ -0,0 +1,3 @@ +[info] [<0.2102.0>] 127.0.0.1 - - 'GET' /test/_design/foo/_rewrite/zach/recent_posts 500 +[debug] [<0.2102.0>] httpd 500 error response: + {"error":"badarity","reason":"{#Fun,\n [{httpd,\n {mochiweb_request,#Port<0.2131>,'GET',\n \"/test/_design/foo/_rewrite/zach/recent_posts\",\n {1,1},\n {9,\n {\"host\",\n {'Host',\"localhost:6666\"},\n {\"accept\",\n {'Accept',\n \"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,application/json\"},\n nil,\n {\"accept-language\",\n {'Accept-Language',\"en-us,en;q=0.5\"},\n {\"accept-encoding\",\n {'Accept-Encoding',\"gzip,deflate\"},\n {\"accept-charset\",\n {'Accept-Charset',\"ISO-8859-1,utf-8;q=0.7,*;q=0.7\"},\n nil,nil},\n nil},\n {\"connection\",\n {'Connection',\"keep-alive\"},\n {\"cache-control\",{'Cache-Control',\"max-age=0\"},nil,nil},\n nil}}},\n {\"user-agent\",\n {'User-Agent',\n \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3\"},\n {\"keep-alive\",{'Keep-Alive',\"300\"},nil,nil},\n nil}}}},\n \"127.0.0.1\",'GET',\n [<<\"test\">>,<<\"_design\">>,<<\"foo\">>,<<\"_rewrite\">>,<<\"zach\">>,\n <<\"recent_posts\">>],\n {dict,5,16,16,8,80,48,\n {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},\n {{[[<<\"_design\">>|#Fun]],\n [],\n [[<<\"_view_cleanup\">>|#Fun]],\n [],[],[],[],[],\n [[<<\"_compact\">>|#Fun]],\n [],[],\n [[<<\"_temp_view\">>|#Fun]],\n [[<<\"_changes\">>|#Fun]],\n [],[],[]}}},\n {user_ctx,null,\n [<<\"_admin\">>],\n <<\"{couch_httpd_auth, default_authentication_handler}\">>},\n undefined,\n {dict,5,16,16,8,80,48,\n {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},\n {{[],\n [[<<\"_show\">>|#Fun]],\n [[<<\"_info\">>|#Fun],\n [<<\"_list\">>|#Fun]],\n [[<<\"_update\">>|#Fun]],\n [],[],[],[],[],[],[],[],[],\n [[<<\"_view\">>|#Fun]],\n [],[]}}},\n undefined},\n {db,<0.194.0>,<0.195.0>,nil,<<\"1264803272014518\">>,<0.192.0>,<0.196.0>,\n {db_header,4,6,0,{21002,{3,0}},{21391,3},nil,0,nil,nil,1000},\n 6,\n {btree,<0.192.0>,\n {21002,{3,0}},\n #Fun,\n #Fun,#Fun,\n #Fun},\n {btree,<0.192.0>,\n {21391,3},\n #Fun,\n #Fun,#Fun,\n #Fun},\n {btree,<0.192.0>,nil,#Fun,\n #Fun,#Fun,nil},\n 6,<<\"test\">>,\"/Users/zach/Code/benoitc-couchdb/tmp/lib/test.couch\",[],\n [],nil,\n {user_ctx,null,\n [<<\"_admin\">>],\n <<\"{couch_httpd_auth, default_authentication_handler}\">>},\n nil,1000,\n [before_header,after_header,on_file_open]},\n {doc,<<\"_design/foo\">>,\n {4,\n [<<71,53,188,21,53,73,80,81,131,128,164,6,119,91,169,149>>,\n <<108,214,56,36,186,138,182,69,232,117,171,14,235,138,24,82>>,\n <<64,35,118,197,77,225,173,225,50,139,32,106,76,106,40,110>>,\n <<107,67,229,193,131,73,79,220,140,66,245,90,62,138,82,204>>]},\n {[{<<\"language\">>,<<\"javascript\">>},\n {<<\"views\">>,\n {[{<<\"recent_posts\">>,\n {[{<<\"map\">>,\n <<\"function(doc) { emit([doc.author, doc.date], doc.body); }\">>}]}}]}},\n {<<\"rewrites\">>,\n [{[{<<\"from\">>,<<\":user_name/recent_posts\">>},\n {<<\"to\">>,<<\"_view/recent_posts\">>},\n {<<\"method\">>,<<\"GET\">>},\n {<<\"query\">>,\n {[{<<\"descending\">>,true},\n {<<\"limit\">>,20},\n {<<\"startkey\">>,[<<\":user_name\">>,{[]}]},\n {<<\"endkey\">>,[<<\":user_name\">>]}]}}]}]}]},\n [],false,[]}]}"}