Closed eeschiavo closed 6 years ago
Hm, I believe no_db_file should only occur when the database is not already created but it expects it should be created. Maybe the user doesn't have authorization to create databases?
Hi @nolanlawson, thanks you for your help. I don't think is an authorization issue since the user tested was admin.
Can "require_valid_user = true" on couchdb be a problem?
My goal is to have multiple databases for each user and allow them to access each db. I tried doing this:
I have multiple issues in this process:
Do you have any ideas?
I think there is something I miss but I can't figure out what is it. Please let me know if I can supply you more informations.
(sorry for my english!)
Thanks
Update:
I just tried setting require_valid_user = false on couchdb and logging in with a valid user with pouchdb. After success login I tried creating a new database (new Pouchdb(...)) but unfortunately I get the no_db_file error.
Hi I am having same issue. Try to create new db at cloudant but always failed...
Anybody had idea what's the problem?
var db = new PouchDB(https://$USERNAME.cloudant.com/$DATABASE, {auth: {username: admin username, password: admin password}});
error:"forbidden" message:"server_admin access is required for this request" name:"forbidden" reason:"server_admin access is required for this request" status:403
@eeschiavo Would you mind trying to make tiny repo that shows the problem with the readme telling the Couch configuration and users ?
Closing this issue as it seems to be stale. Please do reopen a ticket if you still experience this.
Hi,
I'm trying doing the following: I have a local database (using PouchDB), I check if user is logged in (with pouchdb-authentication login function) and if true I sync the locale db with the remote one.
Unfortunately, when I try to create a new database on CouchDB (I want one db for every user) I always get the error {"error":"not_found","reason":"no_db_file"}. I saw this is a common error described in PouchDB documentation (https://pouchdb.com/guides/databases.html#remote-databases) but CORS is enabled and I can't figure out where is the problem.
My couchdb configuration is:
I do the login as follow:
And, in my pouchDBService I have:
Is there something wrong? Any help is appreciated.
Thanks