我試着添加用戶使用:Acralyzer:當添加invalid_json錯誤用戶
curl -X PUT -u myUsername:myPassword http://kaydee.iriscouch.com/_users/org.couchdb.user:myNewUsername -d '{"name":"myNewUsername", "password":"myNewUserPassword", "roles":["reporter", "reader"], "type":"user"}' -H "Content-Type: application/json"
的反應是:
{"error":"bad_request","reason":"invalid_json"}
curl: (6) Could not resolve host: password
curl: (3) [globbing] error: bad range specification after pos 8
curl: (3) [globbing] unmatched close brace/bracket at pos 7
curl: (3) [globbing] unmatched close brace/bracket at pos 10
我使用Windows 8.是否有任何改變,我需要使命令?
我相信IrisCouch正在使用CouchDB 1.2。
謝謝你:)我正在努力與其他張貼的答案 –
謝謝!我正在把頭髮拉過來。 – motiver