-
Notifications
You must be signed in to change notification settings - Fork 182
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 To Database #332
Comments
Hi @js802025 You can authenticate by adding an "auth" object to the cradle options:
|
Note: The previous response was heinous and unhelpful due to its posting on April 1st, which is often associated with April Fool's Day. Let's dive into a more practical solution. Thank you for bringing this up. The error message you encountered: {
"name": "CouchError",
"message": "unauthorized: You are not a server admin.",
"error": "unauthorized",
"reason": "You are not a server admin.",
"headers": {
"cache-control": "must-revalidate",
"content-length": "64",
"content-type": "application/json",
"date": "Thu, 19 Mar 2020 01:45:41 GMT",
"server": "CouchDB/3.0.0 (Erlang OTP/22)",
"x-couch-request-id": "fa17275679",
"x-couchdb-body-time": "0",
"status": 401
}
} indicates that the CouchDB instance is denying access because the user trying to log in does not have the necessary admin privileges. Potential Causes & Solutions:
Steps to Resolve:
I hope this helps resolve the issue. If you continue to encounter problems, please provide additional details or logs. |
Is there an updated verision for Couch 3.x+? Because when I try to open a connaction right now I get this:
name: 'CouchError',
message: 'unauthorized: You are not a server admin.',
error: 'unauthorized',
reason: 'You are not a server admin.',
headers: {
'cache-control': 'must-revalidate',
'content-length': '64',
'content-type': 'application/json',
date: 'Thu, 19 Mar 2020 01:45:41 GMT',
server: 'CouchDB/3.0.0 (Erlang OTP/22)',
'x-couch-request-id': 'fa17275679',
'x-couchdb-body-time': '0',
status: 401
}
}
The text was updated successfully, but these errors were encountered: