Created
October 2, 2009 02:41
-
-
Save cmcavoy/199422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://127.0.0.1:5984/jazzrecords/_design/artist yields: | |
{"_id":"_design\/artist","_rev":"3356225496","language":"javascript","views":{"artist":{"map":"function(doc) {\n emit(doc._id, doc.artist);\n}"},"chris":{"map":"function(doc) {\n emit(null, doc);\n}"}}} | |
Given the above, I assumed that http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist would give me a bunch of awesome data, but it gives me a 500 | |
(smm)21:45:19-cmcavoy-~% wget http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist | |
--2009-10-01 21:45:21-- http://127.0.0.1:5984/jazzrecords/_design/artist/_view/artist | |
Connecting to 127.0.0.1:5984... connected. | |
HTTP request sent, awaiting response... 500 Internal Server Error | |
2009-10-01 21:45:21 ERROR 500: Internal Server Error. | |
with a jsonovich view of the error message: | |
{ | |
* error: "EXIT" | |
* reason: "{function_clause, [{couch_httpd,handle_db_request, [{mochiweb_request,#Port<0.355>,'GET', "/jazzrecords/_design/artist/_view/artist", {1,1}, {8, {"host", {'Host',"127.0.0.1:5984"}, {"accept", {'Accept', "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,application/json"}, nil, {"accept-language", {'Accept-Language',"en-us,en;q=0.5"}, {"accept-encoding", {'Accept-Encoding',"gzip,deflate"}, {"accept-charset", {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.7"}, nil,nil}, nil}, {"connection",{'Connection',"keep-alive"},nil,nil}}}, {"user-agent", {'User-Agent', "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3"}, {"keep-alive",{'Keep-Alive',"300"},nil,nil}, nil}}}}, 'GET', {"jazzrecords",<0.90.0>, ["_design","artist","_view","artist"]}]}, {couch_httpd,handle_request,2}, {mochiweb_http,headers,4}, {proc_lib,init_p,5}]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment