couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Dionne <dio...@dionne-associates.com>
Subject Re: [jira] Created: (COUCHDB-831) badarity
Date Thu, 22 Jul 2010 13:33:33 GMT
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<couch_httpd_db.5.100501499>,
>                                   [{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<couch_httpd.8.61263750>]],
>                                        [],
>                                        [[<<"_view_cleanup">>|
>                                          #Fun<couch_httpd.8.61263750>]],
>                                        [],[],[],[],[],
>                                        [[<<"_compact">>|
>                                          #Fun<couch_httpd.8.61263750>]],
>                                        [],[],
>                                        [[<<"_temp_view">>|
>                                          #Fun<couch_httpd.8.61263750>]],
>                                        [[<<"_changes">>|
>                                          #Fun<couch_httpd.8.61263750>]],
>                                        [],[],[]}}},
>                                     {user_ctx,null,
>                                      [<<"_admin">>],
>                                      <<"{couch_httpd_auth, default_authentication_handler}">>},
>                                     undefined,
>                                     {dict,6,16,16,8,80,48,
>                                      {[],[],[],[],[],[],[],[],[],[],[],[],[],
>                                       [],[],[]},
>                                      {{[],
>                                        [[<<"_show">>|
>                                          #Fun<couch_httpd.10.132977763>]],
>                                        [[<<"_info">>|
>                                          #Fun<couch_httpd.10.132977763>],
>                                         [<<"_list">>|
>                                          #Fun<couch_httpd.10.132977763>]],
>                                        [[<<"_update">>|
>                                          #Fun<couch_httpd.10.132977763>]],
>                                        [],[],[],[],[],
>                                        [[<<"_rewrite">>|
>                                          #Fun<couch_httpd.10.132977763>]],
>                                        [],[],[],
>                                        [[<<"_view">>|
>                                          #Fun<couch_httpd.10.132977763>]],
>                                        [],[]}}},
>                                     undefined,#Fun<couch_httpd.6.96187723>,
>                                     {dict,13,16,16,8,80,48,
>                                      {[],[],[],[],[],[],[],[],[],[],[],[],[],
>                                       [],[],[]},
>                                      {{[[<<"_restart">>|
>                                          #Fun<couch_httpd.6.96187723>],
>                                         [<<"_replicate">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [[<<"_active_tasks">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [],[],
>                                        [[<<"_utils">>|
>                                          #Fun<couch_httpd.5.8198673>],
>                                         [<<"/">>|#Fun<couch_httpd.5.8198673>],
>                                         [<<"_config">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [[<<"_log">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [],[],
>                                        [[<<"_all_dbs">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [],
>                                        [[<<"_stats">>|
>                                          #Fun<couch_httpd.6.96187723>],
>                                         [<<"favicon.ico">>|
>                                          #Fun<couch_httpd.5.8198673>]],
>                                        [[<<"_session">>|
>                                          #Fun<couch_httpd.6.96187723>],
>                                         [<<"_uuids">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        [],[],
>                                        [[<<"_oauth">>|
>                                          #Fun<couch_httpd.6.96187723>]],
>                                        []}}}},
>                                    {db,<0.519.0>,<0.520.0>,nil,
>                                     <<"1279804768334890">>,<0.517.0>,
>                                     <0.521.0>,
>                                     {db_header,5,0,0,nil,nil,nil,0,nil,nil,
>                                      1000},
>                                     0,
>                                     {btree,<0.517.0>,
>                                      {220,{1,0}},
>                                      #Fun<couch_db_updater.7.69395062>,
>                                      #Fun<couch_db_updater.8.86519079>,
>                                      #Fun<couch_btree.5.124754102>,
>                                      #Fun<couch_db_updater.9.24674233>},
>                                     {btree,<0.517.0>,
>                                      {309,1},
>                                      #Fun<couch_db_updater.10.90337910>,
>                                      #Fun<couch_db_updater.11.13595824>,
>                                      #Fun<couch_btree.5.124754102>,
>                                      #Fun<couch_db_updater.12.34906778>},
>                                     {btree,<0.517.0>,nil,
>                                      #Fun<couch_btree.0.83553141>,
>                                      #Fun<couch_btree.1.30790806>,
>                                      #Fun<couch_btree.2.124754102>,nil},
>                                     1,<<"argh">>,
>                                     "/usr/local/var/lib/couchdb/argh.couch",
>                                     [],[],nil,
>                                     {user_ctx,null,
>                                      [<<"_admin">>],
>                                      <<"{couch_httpd_auth, default_authentication_handler}">>},
>                                     #Ref<0.0.0.2873>,1000,
>                                     [before_header,after_header,on_file_open],
>                                     false},
>                                    {doc,<<"_design/foo">>,
>                                     {1,
>                                      [<<25,182,172,5,205,94,135,139,190,129,
>                                         147,195,251,206,87,187>>]},
>                                     {[{<<"language">>,<<"javascript">>},
>                                       {<<"views">>,
>                                        {[{<<"foo">>,
>                                           {[{<<"map">>,
>                                              <<"function(doc) {emit(1,2);}">>}]}}]}}]},
>                                     [],false,[]}]}}}
> 
> [Thu, 22 Jul 2010 13:27:53 GMT] [info] [<0.1015.0>] Stacktrace: [{couch_httpd_db,handle_design_req,2},
>             {couch_httpd_db,do_db_req,2},
>             {couch_httpd,handle_request_int,5},
>             {mochiweb_http,headers,5},
>             {proc_lib,init_p_do_apply,3}]
> 
> [Thu, 22 Jul 2010 13:27:53 GMT] [info] [<0.1015.0>] 127.0.0.1 - - 'GET' /argh/_design/foo/_views/bar
500
> 
> -- 
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
> 


Mime
View raw message