question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

query _list returns Error

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:29

github_iconTop GitHub Comments

1reaction
iblislincommented, Jun 2, 2016

Our patch has been merged to upstream! apache/couchdb-jquery-couch#5

🎉

0reactions
holymolycommented, May 8, 2016

Cool, thanks for your time!!! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Calling hibernate query list() method generates errors
I am trying to retrieve a list of jobs from the database, but there seems to be a problem. In the entity class:...
Read more >
Error when using Get Items to query a list
The issue I have is when I use a "Get Items" to query the "Master List" it goes through every single item in...
Read more >
Error at first value while using list.generate in power query
Generator to achieve this task, problem I am facing here is for first value in list always returns error and remaining values are...
Read more >
Apex error 'List has no rows for assignment to SObject'
The error "List has no rows for assignment to SObject" occurs when query doesn't return any rows. Resolution. While a SELECT normally returns...
Read more >
5 Common Hibernate Mistakes That Cause Dozens of ...
JPA and Hibernate get often criticized for executing much more queries than expected. ... Modeling Many-to-Many Associations as a List.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found