couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pulkit Singhal <pulkitsing...@gmail.com>
Subject In CouchDb 1.2.0 - Does filtered replication support create_target?
Date Sat, 29 Sep 2012 17:06:11 GMT
I'm using CouchDB 1.2.0 and I'm attempting to test my filtered replication
logic.

I'm testing using curl and I've set create target to true:

curl -H 'Content-Type: application/json' -X POST
> https://username:password@couchdb.com/_replicate -d '
> {
>   "create_target": true,
>   "source":"https://username:password@couchdb.com/db",
>   "target":"https://username:password@couchdb.com/filteredDb",
>   "continuous": true,
>   "filter":"default/myFilter",
>   "query_params": {
>     "key":"[\"val1\",\"val2\"]"
>   }
> }'
>

But I keep getting back an error:
{"error":"db_not_found","reason":"could not open https://username:*****@
couchdb.com/filteredDb/"}

So I'm wondering if CouchDB 1.2.0 supports the create_target flag for
replication?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message