couchapp: query _list returns Error
Hi,
When i use the following function
$.couch.db("db").list("app/listfunction", "viewfunction", {
success: function(data) {
console.log(data);
},
error: function(status) {
console.log(status);
},
});
</script>
I get the error
jquery.js:8434 GET http://1.2.3.4:5984/db/_design/app/_list/listfunction/viewfunction 406 (Not Acceptable)send @ jquery.js:8434jQuery.extend.ajax @ jquery.js:7986ajax @ jquery.couch.js:984list @ jquery.couch.js:818(anonymous function) @ index.html:61
jquery.couch.js:1016 Uncaught An error occurred accessing the list: Content-Type application/json not supported, try one of: text/html; charset=utf-8
The _list functions generates a HTML Table. If I open http://1.2.3.4:5984/db/_design/app/_list/listfunction/viewfunction directly I can see the Table. Just when my page uses the function from above I get the error.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 29
Our patch has been merged to upstream! apache/couchdb-jquery-couch#5
🎉