In Cloudant you can grant another Cloudant user access to one of your 
databases. When you do this, the user being shared with sees the database 
under the shared tab with the database name in the following format:

username/databasename

Where *username* is the user who is sharing the database and *databasename* 
is the database being shared.

When I setup my replicator, I pass in a URL of the format:

*https://myusername.cloudant.com/username/databasename*


However, when I start trying to replicate, I get the following error:


*CBLRemoteJSONRequest[POST 
https://myusername.cloudant.com/username/databasename/_revs_diff]: Got 
error CBLHTTP[405, "Only DELETE,GET,HEAD,PUT allowed", 
<https://myusername.cloudant.com/username/databasename/_revs_diff>]*


I've confirmed with the user sharing the database with me that I have full 
admin/read/write/replication permissions to the database being shared.


The big difference here from replicating databases in my own account is the 
addition of the *username* parameter in the path.


I tried encoding the slash character in the database name (e.g. 
username%2Fdatabasename but that just gave me some not found errors.


So I'm just wondering if anyone has done this already and figured out how 
that works with Cloudant? Or maybe it's just not possible to replicate in 
this way.


Thanks,


Brendan




-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/98611267-2091-4d36-aff5-d91efc535b46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to