Skip to content
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

withCredential error on PDB 5.1.0 #4558

Closed
hrishiballal opened this issue Nov 9, 2015 · 9 comments
Closed

withCredential error on PDB 5.1.0 #4558

hrishiballal opened this issue Nov 9, 2015 · 9 comments

Comments

@hrishiballal
Copy link

I call remote database like so:

var remotedb = 'https://' + couchusername + ':' + couchpassword + '@cloudantuser.cloudant.com/' + dbname;

and then use db.replicate.from(remotedb) to sync the remote db to local db.

When I upgrade to pouchdb 5.1, I am getting a error saying that remote database is private and a dialog box asking to enter credentials below.
How do I set the credentials for remote databases with the code above? I have set the cors properly and also have created users, it works with PDB 5 but does not with 5.1

cloudanterror

@hrishiballal
Copy link
Author

Never mind, I got it like so:

  var remotedb = new PouchDB('https://cloudantusername.cloudant.com/' + dbname, {
  auth: {
    username: couchusername,
    password: couchpassword
  }
  });

@hrishiballal
Copy link
Author

I am seeing this error again after clearing out the cache.

@janraasch
Copy link
Contributor

Same here.

@daleharvey
Copy link
Member

Ok this seems very similar to #4567

Basically on _bulk_get requests were were accidently stripping the headers that got sent. Is there any chance you could check against the latest master and confirm this is fixed?

@janraasch
Copy link
Contributor

yup. That must have been it. master - 3011e71 works fine for me.

@daleharvey
Copy link
Member

That is awesome thanks, fixed by 3011e71

@janraasch
Copy link
Contributor

Hi @daleharvey, is there an ETA for this?

@NickColley
Copy link
Contributor

@janraasch PouchDB is normally released monthly so if someone has time soon I imagine a new release will go out soon.

@janraasch
Copy link
Contributor

Sounds great. Thank you very much for letting me know, @NickColley.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants