Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
-
1
Description
Cluster cluster = Cluster.connect("127.0.0.1", "Administrator", "password");
Bucket bucket = cluster.bucket("travel-sample");
Collection collection = bucket.defaultCollection();
String startDocId = "";
String startKey="aairline_10123";
String endKey="zairline_10642";
viewResult = bucket.viewQuery("dev/x", "view",
ViewOptions.viewOptions()
.startKey(startKey)
.endKey(endKey)
.reduce(false)
.inclusiveEnd(true)
.limit(rowPerPage)
.skip(skip)
.startKeyDocId(startDocId)
);
Exception in thread "main" com.couchbase.client.core.error.CouchbaseException: Unknown view error: ViewError
{error='bad_request', reason='attachments not supported in Couchbase'}{"completed":true,"coreId":"0xdfd0a6a200000001","httpStatus":400,"idempotent":true,"lastDispatchedFrom":"127.0.0.1:55001","lastDispatchedTo":"127.0.0.1:8092","requestId":2,"requestType":"ViewRequest","retried":9,"retryReasons":["BUCKET_OPEN_IN_PROGRESS"],"service":
{"bucket":"travel-sample","designDoc":"dev/x","development":false,"type":"views","viewName":"view"},"status":"INVALID_ARGS","timeoutMs":75000,"timings":
{"dispatchMicros":13991,"totalDispatchMicros":13991,"totalMicros":383499},"viewError":"bad_request","viewErrorReason":"attachments not supported in Couchbase"}
see also: https://forums.couchbase.com/t/use-views-with-the-java-client/2679
looks like the message comes from https://github.com/couchbase/couchdb/blob/master/src/couchdb/couch_httpd_db.erl