ropensci / sofa

Easy R interface to CouchDB
https://docs.ropensci.org/sofa/
33 stars 17 forks source link

Error: (400) - Referer header required #48

Closed wmatwijec closed 7 years ago

wmatwijec commented 7 years ago

Getting this with 1.6.1.

query all in one json blob

> db_explain(z, dbname = "omdb", query = '{
+            "selector": {
+            "_id": {
+            "$gt": null
+            }
+            }
+            }')
Error: (400) - Referer header required.
sckott commented 7 years ago

thanks for the issue. sofa was built targeting Couch v2 and greater, so I haven't been checking if <v2 will work in general

specifically for this, the query interface only exists in v2 and greater. you can see the docs page for this feature does not exist in 1.6.1 http://docs.couchdb.org/en/1.6.1/api/database/find.html