小编oro*_*ous的帖子

特定文档上的CouchDB错误:"HTTP请求中的function_clause错误"

我有一个CouchDB数据库,我在其中存储PDF和PNG附件的文档.在特定文档上保存附件后,show函数在尝试在浏览器中查看该文档时失败.浏览器中的消息是:

{"error":"unknown_error","reason":"function_clause"}
Run Code Online (Sandbox Code Playgroud)

couch.log中的错误是

[Wed, 08 Jun 2011 21:29:58 GMT] [error] [<0.106.0>] function_clause error in HTTP request

[Wed, 08 Jun 2011 21:29:58 GMT] [info] [<0.106.0>] Stacktrace: [{couch_httpd,doc_etag,
             [{'EXIT',
                  {{case_clause,
                       {[{<<"author">>,
                          [<<"Brian St. Claire-King">>,
                           <<"Eloy LaSanta">>]},
                         {<<"book_type">>,[<<"Roleplaying Game">>]},
                         {<<"date_added">>,[2011,6,7]},
                         {<<"date_published">>,2008},
                         {<<"genre">>,
                          [<<"Futuristic">>,<<"Post-Apocalyptic">>]},
                         {<<"language">>,<<"English">>},
                         {<<"license">>,
                          [{[{<<"url">>,<<"http://www.lulu.com">>},
                             {<<"id">>,<<"4880508">>}]}]},
                         {<<"page_count">>,276},
                         {<<"publisher">>,<<"Vajra Enterprises">>},
                         {<<"subtitle">>,<<"The Role Playing Game">>},
                         {<<"system">>,[<<"Organic Rule Components">>]},
                         {<<"title">>,<<"KidWorld">>},
                         {<<"last_modified">>,
                          <<"2011-06-08T01:58:44.697Z">>},
                         {<<"publisher_url">>,
                          <<"http://www.vajraenterprises.com/">>}]}},
                   [{couch_btree,lookup,3},
                    {couch_btree,lookup_kpnode,5},
                    {couch_btree,lookup,2},
                    {couch_db,get_full_doc_info,2},
                    {couch_db,open_doc_int,3},
                    {couch_db,open_doc,3},
                    {couch_httpd_db,couch_doc_open,4},
                    {couch_httpd_show,maybe_open_doc,2}]}}]},
         {couch_httpd_show,show_etag,4},
         {couch_httpd_show,handle_doc_show,6},
         {couch_httpd_db,do_db_req,2},
         {couch_httpd,handle_request_int,5},
         {mochiweb_http,headers,5},
         {proc_lib,init_p_do_apply,3}]

[Wed, 08 Jun 2011 21:29:58 GMT] [info] …
Run Code Online (Sandbox Code Playgroud)

couchdb attachment

5
推荐指数
1
解决办法
4891
查看次数

标签 统计

attachment ×1

couchdb ×1