-
Notifications
You must be signed in to change notification settings - Fork 117
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
login() fails with any user password combination. #130
Comments
So I've gotten it to work. The issue seems to be in If I pass options:
into |
I made a project that reproduce this issue. |
I also have this issue, with a caveat - it only fails when run on the server side, not the client side. I've created a user in _user of username "guest", password "guest" when I run db.login('guest','guest') on client side (chrome), works fine. Similar to Charrondev, the following ajax fixes the problem for me on the server code: (sorry don't know how to format for the wiki)
And my error message: |
Sorry that I haven't been able to get into this recently, even though I opened the issue. If it works in the browser and not node, that makes sense for my situation, as I am using Electron, which straddles the line between the two. |
Any chance we can get that working for Node.js? I'm having the same issue... |
…orrectly set ajax request's body for login
…orrectly set ajax request's body for login
Fixed by 5b61b00. |
The error I am getting is |
@vogelbeere, no this is a different problem: We are waiting for the next (coming soon) release of In the mean time, you can manually npm install |
Thanks @ptitjes - I am not using Node though. |
Sorry, this issue is about some failures that happened with Node.js. So I thought this was you problem. Would you mind opening another issue and explaining fully your problem, please ? (You'll see there is an issue template that guides you into what informations we need to help you solve your problem.) |
Sorry - I am pretty sure that my issue is not caused by the code itself, but just wanted to know what error message this issue gave rise to. I have created a StackOverflow question. |
@vogelbeere If you had open an issue, that could have help others later. Also you are polluting an unrelated issue... Please, next time open an issue! Anyway, I looked at your SO question (which I cannot answer because I don't have an SO account) and you are trying to call |
Thanks! |
I am trying to sign in as the admin user I created. I want to avoid the window popup so I am passing in the Authorization header, and that seems to be working properly, but when I call the login function
It throws an error saying that the authorization is invalid. It can't be invalid because it authorized access through the header, but it throws the following error on the server:
I'm using CouchDB 1.6.1.
If I manually do the authorization using Postman, or an ajax library it seems to work properly though.
The text was updated successfully, but these errors were encountered: