I'm trying to create a database in couchdb, which has an admin user/password set, using couchbeam. I've set my credentials in couchdb's local.ini file and restarted. My code to create a db is:
couchbeam:start(),
Params = #couchdb_params{username="test" ,password="pass"},
Connection = couchbeam_server:start_connection_link(Params),
Db = couchbeam_db:create(Connection, "testdb")
At this point Db = {unknown_error, 401}. Am I doing something wrong here? The 401 seems to indicate an authentication error.
My username/password are ok as this works from the command line:
$curl -X PUT http://test:[email protected]:5984/testdb
{"ok":true}
I'm running Ubuntu 9.10, couchdb 0.10.0. couchbeam 0.4.1, Erlang R1301. Any ideas?