Re: [jira] Created: (COUCHDB-831) badarity

2010-07-22 Thread Robert Dionne
looks like you're missing the view "bar"  ?




On Jul 22, 2010, at 9:29 AM, Harry Vangberg (JIRA) wrote:

> badarity
> 
> 
> Key: COUCHDB-831
> URL: https://issues.apache.org/jira/browse/COUCHDB-831
> Project: CouchDB
>  Issue Type: Bug
>Affects Versions: 1.0
> Environment: mac os x
>Reporter: Harry Vangberg
> 
> 
> I have an empty database with nothing but this design document:
> 
> {
>   "_id": "_design/foo",
>   "_rev": "1-19b6ac05cd5e878bbe8193c3fbce57bb",
>   "language": "javascript",
>   "views": {
>   "foo": {
>   "map": "function(doc) {emit(1,2);}"
>   }
>   }
> }
> 
> Which fails miserably. 
> 
> $ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
> [Thu, 22 Jul 2010 13:27:53 GMT] [error] [<0.1015.0>] Uncaught error in HTTP 
> request: {error,
> {badarity,
>  {#Fun,
>   [{httpd,
> {mochiweb_request,#Port<0.2266>,'GET',
>  "/argh/_design/foo/_views/bar",
>  {1,1},
>  {3,
>   {"user-agent",
>{'User-Agent',
> "curl/7.19.7 
> (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"},
>{"host",
> {'Host',"127.0.0.1:5984"},
> {"accept",{'Accept',"*/*"},nil,nil},
> nil},
>nil}}},
> "127.0.0.1",'GET',
> [<<"argh">>,<<"_design">>,<<"foo">>,
>  <<"_views">>,<<"bar">>],
> {dict,5,16,16,8,80,48,
>  {[],[],[],[],[],[],[],[],[],[],[],[],[],
>   [],[],[]},
>  {{[[<<"_design">>|
>  #Fun]],
>[],
>[[<<"_view_cleanup">>|
>  #Fun]],
>[],[],[],[],[],
>[[<<"_compact">>|
>  #Fun]],
>[],[],
>[[<<"_temp_view">>|
>  #Fun]],
>[[<<"_changes">>|
>  #Fun]],
>[],[],[]}}},
> {user_ctx,null,
>  [<<"_admin">>],
>  <<"{couch_httpd_auth, 
> default_authentication_handler}">>},
> undefined,
> {dict,6,16,16,8,80,48,
>  {[],[],[],[],[],[],[],[],[],[],[],[],[],
>   [],[],[]},
>  {{[],
>[[<<"_show">>|
>  #Fun]],
>[[<<"_info">>|
>  #Fun],
> [<<"_list">>|
>  #Fun]],
>[[<<"_update">>|
>  #Fun]],
>[],[],[],[],[],
>[[<<"_rewrite">>|
>  #Fun]],
>[],[],[],
>[[<<"_view">>|
>  #Fun]],
>[],[]}}},
> undefined,#Fun,
> {dict,13,16,16,8,80,48,
>  {[],[],[],[],[],[],[],[],[],[],[],[],[],
>   [],[],[]},
>  {{[[<<"_restart">>|
>  #Fun],
> [<<"_replicate">>|
>  #Fun]],
>[[<<"_active_tasks">>|
>  #Fun]],
>[],[],
>[[<<"_utils">>|
>  #Fun],
>

[jira] Created: (COUCHDB-831) badarity

2010-07-22 Thread Harry Vangberg (JIRA)
badarity


 Key: COUCHDB-831
 URL: https://issues.apache.org/jira/browse/COUCHDB-831
 Project: CouchDB
  Issue Type: Bug
Affects Versions: 1.0
 Environment: mac os x
Reporter: Harry Vangberg


I have an empty database with nothing but this design document:

{
   "_id": "_design/foo",
   "_rev": "1-19b6ac05cd5e878bbe8193c3fbce57bb",
   "language": "javascript",
   "views": {
   "foo": {
   "map": "function(doc) {emit(1,2);}"
   }
   }
}

Which fails miserably. 

$ curl http://127.0.0.1:5984/argh/_design/foo/_views/bar
[Thu, 22 Jul 2010 13:27:53 GMT] [error] [<0.1015.0>] Uncaught error in HTTP 
request: {error,
 {badarity,
  {#Fun,
   [{httpd,
 {mochiweb_request,#Port<0.2266>,'GET',
  "/argh/_design/foo/_views/bar",
  {1,1},
  {3,
   {"user-agent",
{'User-Agent',
 "curl/7.19.7 
(universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3"},
{"host",
 {'Host',"127.0.0.1:5984"},
 {"accept",{'Accept',"*/*"},nil,nil},
 nil},
nil}}},
 "127.0.0.1",'GET',
 [<<"argh">>,<<"_design">>,<<"foo">>,
  <<"_views">>,<<"bar">>],
 {dict,5,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[<<"_design">>|
  #Fun]],
[],
[[<<"_view_cleanup">>|
  #Fun]],
[],[],[],[],[],
[[<<"_compact">>|
  #Fun]],
[],[],
[[<<"_temp_view">>|
  #Fun]],
[[<<"_changes">>|
  #Fun]],
[],[],[]}}},
 {user_ctx,null,
  [<<"_admin">>],
  <<"{couch_httpd_auth, 
default_authentication_handler}">>},
 undefined,
 {dict,6,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[],
[[<<"_show">>|
  #Fun]],
[[<<"_info">>|
  #Fun],
 [<<"_list">>|
  #Fun]],
[[<<"_update">>|
  #Fun]],
[],[],[],[],[],
[[<<"_rewrite">>|
  #Fun]],
[],[],[],
[[<<"_view">>|
  #Fun]],
[],[]}}},
 undefined,#Fun,
 {dict,13,16,16,8,80,48,
  {[],[],[],[],[],[],[],[],[],[],[],[],[],
   [],[],[]},
  {{[[<<"_restart">>|
  #Fun],
 [<<"_replicate">>|
  #Fun]],
[[<<"_active_tasks">>|
  #Fun]],
[],[],
[[<<"_utils">>|
  #Fun],
 [<<"/">>|#Fun],
 [<<"_config">>|
  #Fun]],
[[<<"_log">>|
  #Fun