我安装了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."
你能告诉我如何解决这个问题吗?
您正在尝试插入_design
文档,为此,您需要拥有数据库admin
用户名和密码。据我所知,一种方法是修改 URL,例如:
http://username:password@172.16.x.x:5984/activity-stream/_design/user-job