CouchDB displays the URL: CouchDB: {"error": "not_found", "reason": "missing"} ... Why?

For instance:

  • My CouchDB is hosted at: example.com
  • CouchDB Database Name: foo
  • View Name: my_view

So, when I put them together to create a URL, I get:

The above url shows:

 {"error":"not_found","reason":"missing"}

Why is this error indicated?

The expected result is that documents matching the view "my_view" are listed.

Additional Information:

If I am http://www.example.com/foo , I get the expected response:

{"db_name":"foo","...

If I am http://www.example.com/foo/_design/my_view , I get the expected answer:

{"_id":"_design/my_view","_rev":"...

I am using CouchDB v1.0.2 on Windows7 / Chrome

( , example.com)

{
  "_id":"_design/locations",
  "_rev":"1-0f7fbdd2f5b4213591e171b6e546af3a",
  "language":"javascript",
  "views": {
    "locations": {
      "map":"function(doc) {\n  emit(doc.type === \"location\" && doc.name);\n}"
    }
  }
}
+5
1

URL- - /<db>/_design/<design>/_view/<view>.

URL, , URL:

http://burritohunter.com/couchdb/burritohunter/_design/locations/_view/locations

, :

{"total_rows":2,"offset":0,"rows":[
{"id":"86bb31389b78aa5921f7a2f5c0000915","key":"Billy's","value":null},
{"id":"jimmys","key":"Jimmy's","value":null}
]}

/_design/locations :

{"_id":"_design/locations","_rev":"1-0f7fbdd2f5b4213591e171b6e546af3a","language":"javascript","views":{"locations":{"map":"function(doc) {\n  emit(doc.type === \"location\" && doc.name);\n}"}}}
+10

All Articles