Nitin, Hey the hosting on couch.io is proxied behind Apache and requires you to use your Couch.io login.
try specifying the target database URL as http://USER:[email protected]/foobar Let me know how that works. We'll be relaxing the restriction requiring passwords so that paid accounts can be used for publishing, probably in the next day or so. Chris On Mon, May 25, 2009 at 7:48 PM, Nitin Borwankar <[email protected]> wrote: > Trying to push a db via repl from local couch to hosting.couch.io - getting > bad mouthed by Erlang. > > Replication failed: {error, > {{bad_return_value, > {invalid_json, > <<"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML > 2.0//EN\">\n<html><head>\n<title>401 Authorization > Required</title>\n</head><body>\n<h1>Authorization Required</h1>\n<p>This > server could not verify that you\nare authorized to access the > document\nrequested. Either you supplied the wrong\ncredentials (e.g., bad > password), or your\nbrowser doesn't understand how to supply\nthe > credentials required.</p>\n<hr>\n<address>Apache/2.2.9 (Ubuntu) > Phusion_Passenger/2.1.3 mod_ssl/2.2.9 OpenSSL/0.9.8g Server at > nborwankar.couch.io Port 80</address>\n</body></html>\n">>}}, > {child,undefined,"c3e63adb1f977a98496968761349dd8d", > {gen_server,start_link, > [couch_rep, > ["c3e63adb1f977a98496968761349dd8d", > {local,<<"foobar">>,{user_ctx,null,[]}}, > {remote,<<"http://nborwankar.couch.io/foobar/">>,[]}], > []]}, > transient,1,worker, > [couch_rep]}}} > > What's the way to pass auth info while doing repl to hosting ? > > Nitin > > 37% of all statistics are made up on the spot > ------------------------------------------------------------------------------------- > Nitin Borwankar > [email protected] > -- Chris Anderson http://jchrisa.net http://couch.io
