New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replicating with a Cloudant shared database #1295
Comments
The URL in the HTTP request looks correct: The URL of the database in the dashboard may not correspond to the actual REST URL. Click on the "API" button at the top of the dashboard and it'll show you the actual URL. |
Oh interesting. I didn't think to click on that. It seems that the URL is like this: https://username.cloudant.com/db-068f2e250ba7420b8b2a6fa1d2da6dd3/_all_docs Where I'll give that a try. However, normally I specify the username and password for my account with basic auth:
But I don't have their username or password, so I'm not entirely sure how this would work. Maybe I use their URL but my username and password? I'll see what happens. |
Well what do you know? It worked! I'll close this issue now then. Thanks for the tip Jens! |
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 in the Cloudant dashboard 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%2Fdatabasename
However, when I start trying to replicate, I get the following error:
I've confirmed I have full read/write access to the shared database in Cloudant.
It appears that the name of the database is username/databasename, but I can't be too sure of that. It may be required that to replicate with a shared database that a different kind of parameter needs to be sent to indicate that the database is not one of the databases in your main account, but is a shared database.
The text was updated successfully, but these errors were encountered: