使用coffeescript函数时Couchdb`错误:EXIT`错误

时间:2013-05-20 17:23:25

标签: coffeescript couchdb

每当调用任何设计文档函数时,我都会收到类似的错误

    Error: EXIT

    {{badmatch,[]},
     [{couch_query_servers,new_process,3,
                           [{file,"/tmp/build-couchdb/dependencies/couchdb/src/couchdb/couch_query_servers.erl"},
                            {line,472}]},
      {couch_query_servers,lang_proc,3,
                           [{file,"/tmp/build-couchdb/dependencies/couchdb/src/couchdb/couch_query_servers.erl"},
                            {line,462}]},
      {couch_query_servers,handle_call,3,
                           [{file,"/tmp/build-couchdb/dependencies/couchdb/src/couchdb/couch_query_servers.erl"},
                            {line,322}]},
      {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
      {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

1 个答案:

答案 0 :(得分:1)

在我的情况下,这是因为我language中的_design/document属性拼写错误。

{
   "_id": "_design/myapp",
   "_rev": "20-cafeb7b6886a37e8c629978f934eea86",
   "language": "cofeescript", // <- Notice misspelled tag
   "lists": {
   },
   "shows": {
   },
   "validate": "...",
   "validate_doc_update": "...",
   "views": {   },
   "couchapp": { ... }
}