couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Smith (Created) (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1318) 500 function_clause error when requesting bad views
Date Wed, 26 Oct 2011 09:47:34 GMT
500 function_clause error when requesting bad views

                 Key: COUCHDB-1318
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core
    Affects Versions: 1.1
         Environment: OS X, Linux
            Reporter: Jason Smith
            Priority: Minor

Run the replicator test suite. The design document /test_suite_rep_doc_db_a/_design/foobar
is well-named. Its views definition is not a {"map":..., "reduce":...} object but rather a
string (of what would be a map function).

Design documents of this form return HTTP 500 with function_clause errors when querying both
(1) _view/the_bad_view and also (2) _info.

Stack trace:

[debug] [<0.20047.0>] 'GET' /asdf/_design/x/_view/jason {1,1} from ""
Headers: [{'Accept',"*/*"},
          {'User-Agent',"curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/
[debug] [<0.20047.0>] OAuth Params: []
[error] [<0.20047.0>] function_clause error in HTTP request
[info] [<0.20047.0>] Stacktrace: [{couch_view_group,
                                     <<"function(doc) { emit(doc._id, 1) }">>},
[info] [<0.20047.0>] - - 'GET' /asdf/_design/x/_view/jason 500
[debug] [<0.20047.0>] httpd 500 error response:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message