CouchDB错误-格式错误的AuthSession cookie-版本2,2

时间:2018-08-13 13:44:48

标签: couchdb couchdb-nano

我安装了couchDB 2.2,它正在远程服务器(ubuntu)上运行。现在,我在另一台计算机上安装了带有NPM模块NANO的节点应用程序。但是,尝试创建文档时出现错误。

 "Error getting existing document: {"message\": "Malformed AuthSession cookie. Please clear your cookies.\",\n  \"stack\": \"Error: Malformed AuthSession cookie. Please clear your cookies.\\n    at Request._callback (/opt/mobile/sprout/a/node_modules/nano/lib/nano.js:248:15)\\n    at Request.self.callback 


 400,    \"uri\": \"http://172.16.x.x:5984/activity-stream/_design/user-job\"\n  },\n  \"errid\": \"non_200\",\n  \"description\": \"couch returned 400\"\n}",

"Error inserting the new document: Malformed AuthSession cookie. Please clear your cookies."

能否让我知道如何解决此问题。

1 个答案:

答案 0 :(得分:0)

您正在尝试插入_design文档,为此,您需要具有admin数据库的用户名和密码。据我所知,一种方法是修改如下网址:

http://username:password@172.16.x.x:5984/activity-stream/_design/user-job