CouchDB视图错误 [英] CouchDB views erroring out

查看:59
本文介绍了CouchDB视图错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用CouchDB(和RelaxDB rub​​y​​库),但是创建视图然后尝试访问它会导致讨厌的非特定错误。我后退一步是因为我认为RelaxDB可能与我正在使用的CouchDB版本不兼容(0.8.1),但是即使在创建新数据库和等效视图并通过手动单击URL进行调用时,它仍然没有

I've been playing with CouchDB (and the RelaxDB ruby library) but creating a view and then trying to access it causes a nasty non specific error. I stepped back a step because I thought RelaxDB might be incompatible with the CouchDB version I'm using(0.8.1), but even when I create a new database and equivalent views and call it by manually hitting the URL it still doesn't work.

[info] [<0.13529.0>] HTTP Error (code 500): {'EXIT',
                    {function_clause,
                     [{couch_httpd,handle_db_request,
                       [{mochiweb_request,#Port<0.9282>,'GET',
                         "/hello/_design/app/_view/Accounts_all?reduce=false",
                         {1,1},
                         {2,
                          {"accept",
                           {'Accept',"*/*"},
                           nil,
                           {"host",{'Host',"localhost:5984"},nil,nil}}}},
                        'GET',
                        {"hello",<0.157.0>,
                         ["_design","app","_view",
                          "Accounts_all"]}]},
                      {couch_httpd,handle_request,2},
                      {mochiweb_http,headers,4},
                      {proc_lib,init_p_do_apply,3}]}}


推荐答案

我认为您正在使用0.9 API带有0.8版本的软件。请参阅Wiki 进行重大更改文档。您需要访问 / hello / _view / app / Accounts_all ,或考虑升级到新发布的CouchDB 0.9。

I think you are using the 0.9 API with a 0.8 version of the software. See the wiki Breaking Changes document. You need to be accessing /hello/_view/app/Accounts_all, or consider upgrading to the newly-released CouchDB 0.9.

这篇关于CouchDB视图错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆